spec/unit/mongoid/criterion/optional_spec.rb in mongoid-1.2.7 vs spec/unit/mongoid/criterion/optional_spec.rb in mongoid-1.2.8
- old
+ new
@@ -28,19 +28,9 @@
end
it "returns true" do
@criteria.cached?.should be_true
end
-
- it "removes cache from the options" do
- @criteria.cached?
- @criteria.options[:cache].should be_nil
- end
-
- it "sets the cache instance variable" do
- @criteria.cached?
- @criteria.instance_variable_get(:@cached).should be_true
- end
end
context "when the criteria has no cache option" do
it "returns false" do