spec/deferred_query_spec.rb in medea-0.6.8 vs spec/deferred_query_spec.rb in medea-0.6.9

- old
+ new

@@ -24,16 +24,21 @@ end it "should be able to be limited to a certain number of results" do u = User.all u.limit = 5 - u.count.should be <= 5 + u.count.should be == 5 u = User.all :limit => 4 - u.count.should be <= 4 + u.count.should be == 4 end - it "should be able to fetch those since a particular time" + it "should be able to fetch those since a particular time" do + u = User.all[10] + User.all(:since => u.jason_timestamp).each do |i| + i.jason_timestamp.should be >= u.jason_timestamp + end + end it "should return the last element" do u = User.all u.last.should eq(u[-1]) end \ No newline at end of file