spec/deferred_query_spec.rb in medea-0.6.9 vs spec/deferred_query_spec.rb in medea-0.7.0
- old
+ new
@@ -31,10 +31,10 @@
u = User.all :limit => 4
u.count.should be == 4
end
it "should be able to fetch those since a particular time" do
- u = User.all[10]
+ u = User.all[User.all.count - 1]
User.all(:since => u.jason_timestamp).each do |i|
i.jason_timestamp.should be >= u.jason_timestamp
end
end
\ No newline at end of file