aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/reflection_test.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-04-19 21:37:54 +0000
committerRick Olson <technoweenie@gmail.com>2006-04-19 21:37:54 +0000
commitdf7b74668ebc0ae9978d4c27125db7fec730b110 (patch)
tree9480c1dc66827f1688067b1c463a1c3691beb1ac /activerecord/test/reflection_test.rb
parent9d8e34808f0d20d4bbc1cfb0cdf294b35d8bd224 (diff)
downloadrails-df7b74668ebc0ae9978d4c27125db7fec730b110.tar.gz
rails-df7b74668ebc0ae9978d4c27125db7fec730b110.tar.bz2
rails-df7b74668ebc0ae9978d4c27125db7fec730b110.zip
Fix the HasManyAssociation#count method so it uses the new ActiveRecord::Base#count syntax, while maintaining backwards compatibility. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/reflection_test.rb')
-rw-r--r--activerecord/test/reflection_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/reflection_test.rb b/activerecord/test/reflection_test.rb
index 64689595fe..4882ca246f 100644
--- a/activerecord/test/reflection_test.rb
+++ b/activerecord/test/reflection_test.rb
@@ -137,8 +137,8 @@ class ReflectionTest < Test::Unit::TestCase
end
def test_reflection_of_all_associations
- assert_equal 13, Firm.reflect_on_all_associations.size
- assert_equal 11, Firm.reflect_on_all_associations(:has_many).size
+ assert_equal 14, Firm.reflect_on_all_associations.size
+ assert_equal 12, Firm.reflect_on_all_associations(:has_many).size
assert_equal 2, Firm.reflect_on_all_associations(:has_one).size
assert_equal 0, Firm.reflect_on_all_associations(:belongs_to).size
end