Skip to content

Commit

Permalink
Made many-to-many specs pending
Browse files Browse the repository at this point in the history
  • Loading branch information
andykent authored and Dan Kubb committed Apr 20, 2008
1 parent 8c24e7c commit 7656ef6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/unit/associations_spec.rb
Expand Up @@ -89,6 +89,9 @@ class Manufacturer
end end


it "should create a many-to-many relationship if references are circular" do it "should create a many-to-many relationship if references are circular" do
# ================
pending
# ================
Manufacturer.should_receive(:many_to_many). Manufacturer.should_receive(:many_to_many).
with(:vehicles,{}). with(:vehicles,{}).
and_return(@relationship) and_return(@relationship)
Expand All @@ -99,6 +102,15 @@ class Vehicle
has n, :manufacturers has n, :manufacturers
end end
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
end end


Expand Down

0 comments on commit 7656ef6

Please sign in to comment.