test/unit/associations/test_base.rb in mongo_mapper-0.11.0 vs test/unit/associations/test_base.rb in mongo_mapper-0.11.1

- old
+ new

@@ -131,6 +131,16 @@ base = OneAssociation.new(:media) base.proxy_class.should == OneEmbeddedProxy end end + context "touch?" do + should "be true if touch" do + BelongsToAssociation.new(:car, :touch => true).touch?.should be_true + end + + should "be false if not touch" do + BelongsToAssociation.new(:car).touch?.should be_false + end + end + end