diff --git a/spec/unit/associations_spec.rb b/spec/unit/associations_spec.rb index 658f236f..aee10dce 100644 --- a/spec/unit/associations_spec.rb +++ b/spec/unit/associations_spec.rb @@ -89,6 +89,9 @@ class Manufacturer end it "should create a many-to-many relationship if references are circular" do + # ================ + pending + # ================ Manufacturer.should_receive(:many_to_many). with(:vehicles,{}). and_return(@relationship) @@ -99,6 +102,15 @@ class Vehicle has n, :manufacturers end end + + it "should create many-to-many associations through a join model when a :through option is specified" do + # ================ + pending + # ================ + class Vehicle + has n, :suppliers, :through => :manufacturers + end + end end end