spec/deferred_query_spec.rb in medea-0.6.4 vs spec/deferred_query_spec.rb in medea-0.6.5

- old
+ new

@@ -31,6 +31,16 @@ u = User.all :limit => 4 u.count.should be <= 4 end it "should be able to fetch those since a particular time" + + it "should return the last element" do + u = User.all + u.last.should eq(u[-1]) + end + + it "should return the first element" do + u = User.all + u.first.should eq(u[0]) + end end \ No newline at end of file