aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-06-24 20:28:15 +0530
committerVipul A M <vipulnsward@gmail.com>2013-06-24 21:05:04 +0530
commit9d474d4885a72a0bbebbb1a0515a7388223d9ad9 (patch)
treef3423ad5fa7ffdad8db6f2e0a2de5e3a4efaa0bb /activerecord
parentf6cdc2282ff4a34e4d0230b80d945f9c898d6973 (diff)
downloadrails-9d474d4885a72a0bbebbb1a0515a7388223d9ad9.tar.gz
rails-9d474d4885a72a0bbebbb1a0515a7388223d9ad9.tar.bz2
rails-9d474d4885a72a0bbebbb1a0515a7388223d9ad9.zip
Fix `another_contract` not being used warning
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]