aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/reflection_test.rb
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2007-10-26 03:42:28 +0000
committerMarcel Molina <marcel@vernix.org>2007-10-26 03:42:28 +0000
commitbf658a906bf32127429f3ba808cef65c49b59607 (patch)
tree3423b2b9689a903561b20168c2fc59f7a4504c56 /activerecord/test/reflection_test.rb
parent7f8183e3c4449d2442a95ed75504d1fba4b4cf8d (diff)
downloadrails-bf658a906bf32127429f3ba808cef65c49b59607.tar.gz
rails-bf658a906bf32127429f3ba808cef65c49b59607.tar.bz2
rails-bf658a906bf32127429f3ba808cef65c49b59607.zip
Allow find on a has_many association defined with :finder_sql to accept id arguments as strings like regular find does. Closes #9916 [krishna]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8030 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 eca8b5e989..1ed5c2610c 100644
--- a/activerecord/test/reflection_test.rb
+++ b/activerecord/test/reflection_test.rb
@@ -159,8 +159,8 @@ class ReflectionTest < Test::Unit::TestCase
end
def test_reflection_of_all_associations
- assert_equal 16, Firm.reflect_on_all_associations.size
- assert_equal 14, Firm.reflect_on_all_associations(:has_many).size
+ assert_equal 17, Firm.reflect_on_all_associations.size
+ assert_equal 15, 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