aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-06-24 08:38:08 -0700
committerYves Senn <yves.senn@gmail.com>2013-06-24 08:38:08 -0700
commit359a2196642b92883e120c4922d660e908a9080d (patch)
treef3423ad5fa7ffdad8db6f2e0a2de5e3a4efaa0bb /activerecord
parentf6cdc2282ff4a34e4d0230b80d945f9c898d6973 (diff)
parent9d474d4885a72a0bbebbb1a0515a7388223d9ad9 (diff)
downloadrails-359a2196642b92883e120c4922d660e908a9080d.tar.gz
rails-359a2196642b92883e120c4922d660e908a9080d.tar.bz2
rails-359a2196642b92883e120c4922d660e908a9080d.zip
Merge pull request #11075 from vipulnsward/remove_record
Remove `another_contract` as it isn't being used
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/associations/has_many_associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb
index acb92bdbd0..8f5e18b863 100644
--- a/activerecord/test/cases/associations/has_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_many_associations_test.rb
@@ -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]