From c350291ae7f9f0014d25575a1f0f13070c0b1c0c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 25 Feb 2006 23:32:24 +0000 Subject: Fixed that reflections would bleed across class boundaries in single-table inheritance setups (closes #3796) [lars@pind.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/reflection_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/test/reflection_test.rb') diff --git a/activerecord/test/reflection_test.rb b/activerecord/test/reflection_test.rb index 6e5d7126f5..27cb40ee4d 100644 --- a/activerecord/test/reflection_test.rb +++ b/activerecord/test/reflection_test.rb @@ -128,9 +128,9 @@ class ReflectionTest < Test::Unit::TestCase end def test_reflection_of_all_associations - assert_equal 12, Firm.reflect_on_all_associations.size + assert_equal 13, Firm.reflect_on_all_associations.size assert_equal 11, Firm.reflect_on_all_associations(:has_many).size - assert_equal 1, Firm.reflect_on_all_associations(:has_one).size + assert_equal 2, Firm.reflect_on_all_associations(:has_one).size assert_equal 0, Firm.reflect_on_all_associations(:belongs_to).size end -- cgit v1.2.3