Fix test as one more has_many added

This commit is contained in:
Arun Agrawal 2011-11-04 19:30:59 +05:30
parent 0fcf8bfbe9
commit 6da558660c
1 changed files with 1 additions and 1 deletions

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