don't conflict with the pre-existing method

This commit is contained in:
Jacob Morris 2012-08-23 23:47:27 -06:00 committed by Jason Draper
parent cf6452d86d
commit 1b31a064fb
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ describe Shoulda::Matchers::ActiveRecord::AssociationMatcher do
define_model :person do
has_one :detail, :foreign_key => :detailed_person_id
end
Person.new.should @matcher.foreign_key(:detailed_person_id)
Person.new.should @matcher.with_foreign_key(:detailed_person_id)
end
it "should reject an association with a bad :as option" do