From 9d474d4885a72a0bbebbb1a0515a7388223d9ad9 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Mon, 24 Jun 2013 20:28:15 +0530 Subject: [PATCH] Fix `another_contract` not being used warning --- .../test/cases/associations/has_many_associations_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def test_get_ids_for_association_on_new_record_does_not_try_to_find_records 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]