aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/associations_test.rb')
-rw-r--r--activerecord/test/cases/associations_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations_test.rb b/activerecord/test/cases/associations_test.rb
index 9b0cf4c18f..c40bcd068c 100644
--- a/activerecord/test/cases/associations_test.rb
+++ b/activerecord/test/cases/associations_test.rb
@@ -46,7 +46,7 @@ class AssociationsTest < ActiveRecord::TestCase
firm = Firm.find(1)
assert_kind_of Firm, firm
- firm.clear_association_cache
+ firm.send(:clear_association_cache)
assert_equal Firm.find(1).clients.collect{ |x| x.name }.sort, firm.clients.collect{ |x| x.name }.sort
end
@@ -60,7 +60,7 @@ class AssociationsTest < ActiveRecord::TestCase
firm.clients << clients
assert_equal clients.map(&:name).to_set, firm.clients.map(&:name).to_set
- firm.clear_association_cache
+ firm.send(:clear_association_cache)
assert_equal clients.map(&:name).to_set, firm.clients.map(&:name).to_set
end