spec/timespan/mongoid/mongoid_timespan_spec.rb in timespan-0.4.2 vs spec/timespan/mongoid/mongoid_timespan_spec.rb in timespan-0.4.3
- old
+ new
@@ -49,9 +49,13 @@
before :each do
subject.period_start = tomorrow
end
specify do
+ subject.start_date.should == subject.period.start_date
+ end
+
+ specify do
Date.parse(subject.start_date.to_s).should == tomorrow
end
end
end
end
\ No newline at end of file