Fixes for 4 of the original 10 failing specs

This commit is contained in:
Tim Heighes 2010-02-26 00:25:51 +01:00
parent 15ea10eb9c
commit 151ea5566d
2 changed files with 7 additions and 2 deletions

View file

@ -175,8 +175,9 @@ describe "ExtendedDocument properties" do
@course['participants'].should eql([{}, 'q', 1])
end
it "should cast end_date to Date" do
@event['end_date'].should be_an_instance_of(Date)
it "should cast started_on to Date" do
@course.started_on = Date.today
@course['started_on'].should be_an_instance_of(Date)
end
end