test/unit/test_ar_side.rb in bigamy-0.1.0 vs test/unit/test_ar_side.rb in bigamy-0.1.1

- old
+ new

@@ -32,13 +32,13 @@ should "have divorce_everyone" do assert User.respond_to?(:divorce_everyone) end - context "that has_one_ar :doc" do + context "that has_one_mm :doc" do setup do - User.has_one_ar :doc + User.has_one_mm :doc @doc = Doc.create! end should "create accessors" do assert User.new.respond_to?(:doc) @@ -69,13 +69,13 @@ assert_equal d.doc, @doc end end end - context "that has_many_ar :doc" do + context "that has_many_mm :doc" do setup do - User.has_many_ar :docs + User.has_many_mm :docs end should "create accessors" do assert User.new.respond_to?(:docs) assert User.new.respond_to?(:docs=) @@ -115,12 +115,12 @@ end end end - context "that belongs_to_ar :doc" do + context "that belongs_to_mm :doc" do setup do - User.belongs_to_ar :doc + User.belongs_to_mm :doc end should "create accessors" do assert User.new.respond_to?(:doc) assert User.new.respond_to?(:doc=)