1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix another_contract not being used warning

This commit is contained in:
Vipul A M 2013-06-24 20:28:15 +05:30
parent f6cdc2282f
commit 9d474d4885

View file

@ -1351,7 +1351,7 @@ class HasManyAssociationsTest < ActiveRecord::TestCase
def test_set_ids_for_association_on_new_record_applies_association_correctly
contract_a = Contract.create!
contract_b = Contract.create!
another_contract = Contract.create!
Contract.create! # another contract
company = Company.new(:name => "Some Company")
company.contract_ids = [contract_a.id, contract_b.id]