spec/mongomodel/support/scope_spec.rb in mongomodel-0.3.3 vs spec/mongomodel/support/scope_spec.rb in mongomodel-0.3.4
- old
+ new
@@ -396,19 +396,10 @@
always do
it "should return the first document" do
subject.first.should == posts[0]
end
end
-
- subject_not_loaded do
- it "should cache find result" do
- model.should_find(finder_options.merge(:limit => 1), [posts[0]]) do
- subject.first
- subject.first
- end
- end
- end
end
end
end
describe "#last" do
@@ -479,18 +470,9 @@
before(:each) { model.stub_find([post]) }
always do
it "should return the last document" do
subject.last.should == post
- end
- end
-
- subject_not_loaded do
- it "should cache find result" do
- model.should_find(reversed_finder_options.merge(:limit => 1), [post]) do
- subject.last
- subject.last
- end
end
end
end
end
end