Browse files

Merge pull request #11240 from neerajdotname/remove-not-useful-test

Removing not useful test related to reflect_on_all_associations
  • Loading branch information...
2 parents 044e769 + 1a560e6 commit 173d4b9d93bac1e0b60520e3850f2b09e6a44a7f @carlosantoniodasilva carlosantoniodasilva committed Jul 2, 2013
Showing with 0 additions and 8 deletions.
  1. +0 −8 activerecord/test/cases/reflection_test.rb
View
8 activerecord/test/cases/reflection_test.rb
@@ -186,14 +186,6 @@ def test_association_reflection_in_modules
ActiveRecord::Base.store_full_sti_class = true
end
- def test_reflection_of_all_associations
- # FIXME these assertions bust a lot
- assert_equal 39, Firm.reflect_on_all_associations.size
- assert_equal 29, 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
-
def test_reflection_should_not_raise_error_when_compared_to_other_object
assert_nothing_raised { Firm.reflections[:clients] == Object.new }
end

0 comments on commit 173d4b9

Please sign in to comment.