spec/timespan/mongoid/mongoid_search_spec.rb in timespan-0.4.4 vs spec/timespan/mongoid/mongoid_search_spec.rb in timespan-0.4.5

- old
+ new

@@ -7,11 +7,9 @@ before do Account.delete_all @acc1 = Account.create :period => Timespan.new(:start_date => 2.days.ago) @acc2 = Account.create :period => Timespan.new(:start_date => 5.days.ago, :end_date => 2.days.ago) @acc3 = Account.create :period => Timespan.new(:start_date => 10.days.ago) - - # puts [@acc1._id, @acc2._id, @acc3._id] end describe 'find accounts within specific period' do it 'should find a single period less than 6 days old' do Account.where(:'period.from'.lt => 6.days.ago.to_i).first.should == @acc3 \ No newline at end of file