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:
parent
f6cdc2282f
commit
9d474d4885
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue