aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/join_model_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-11 15:39:26 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-11 15:39:26 -0800
commitfcd8925f236b391d562dc504bcd901f501140c11 (patch)
tree0e0f26167a4048b7302c5c57fef9bba69f93e8ed /activerecord/test/cases/associations/join_model_test.rb
parent5696d948ed0eb9cf755e843564f80801ea864ee2 (diff)
downloadrails-fcd8925f236b391d562dc504bcd901f501140c11.tar.gz
rails-fcd8925f236b391d562dc504bcd901f501140c11.tar.bz2
rails-fcd8925f236b391d562dc504bcd901f501140c11.zip
use underlying _read_attribute method rather than causing NoMethodErrors
Diffstat (limited to 'activerecord/test/cases/associations/join_model_test.rb')
-rw-r--r--activerecord/test/cases/associations/join_model_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/join_model_test.rb b/activerecord/test/cases/associations/join_model_test.rb
index 512a6d3ef8..c50fcd3f33 100644
--- a/activerecord/test/cases/associations/join_model_test.rb
+++ b/activerecord/test/cases/associations/join_model_test.rb
@@ -523,7 +523,7 @@ class AssociationsJoinModelTest < ActiveRecord::TestCase
def test_has_many_through_collection_size_uses_counter_cache_if_it_exists
author = authors(:david)
- author.stubs(:read_attribute).with('comments_count').returns(100)
+ author.stubs(:_read_attribute).with('comments_count').returns(100)
assert_equal 100, author.comments.size
assert !author.comments.loaded?
end