Merge pull request #3517 from arunagw/test_fix_activerecord

Fix test as one more has_many added
This commit is contained in:
Jon Leighton
2011-11-04 07:04:43 -07:00

View File

@@ -190,7 +190,7 @@ class ReflectionTest < ActiveRecord::TestCase
def test_reflection_of_all_associations
# FIXME these assertions bust a lot
assert_equal 37, Firm.reflect_on_all_associations.size
assert_equal 26, Firm.reflect_on_all_associations(:has_many).size
assert_equal 27, Firm.reflect_on_all_associations(:has_many).size
assert_equal 10, Firm.reflect_on_all_associations(:has_one).size
assert_equal 0, Firm.reflect_on_all_associations(:belongs_to).size
end