aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/reflection_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-02-25 23:32:24 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-02-25 23:32:24 +0000
commitc350291ae7f9f0014d25575a1f0f13070c0b1c0c (patch)
tree868010a934c22cf27c1693309e5b0e1e2726b591 /activerecord/test/reflection_test.rb
parent67a978be5d6857785c08b464b0ef4555298da14b (diff)
downloadrails-c350291ae7f9f0014d25575a1f0f13070c0b1c0c.tar.gz
rails-c350291ae7f9f0014d25575a1f0f13070c0b1c0c.tar.bz2
rails-c350291ae7f9f0014d25575a1f0f13070c0b1c0c.zip
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
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 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