aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-07-02 05:16:19 -0700
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-07-02 05:16:19 -0700
commit173d4b9d93bac1e0b60520e3850f2b09e6a44a7f (patch)
tree3bfe3d345b0fc9b8749cc0527d528125530d8525 /activerecord/test
parent044e769b423cf31c75c43c2b2b45fcb26fd82873 (diff)
parent1a560e6160f8b4f4a6c01d13000bad20ef02edf9 (diff)
downloadrails-173d4b9d93bac1e0b60520e3850f2b09e6a44a7f.tar.gz
rails-173d4b9d93bac1e0b60520e3850f2b09e6a44a7f.tar.bz2
rails-173d4b9d93bac1e0b60520e3850f2b09e6a44a7f.zip
Merge pull request #11240 from neerajdotname/remove-not-useful-test
Removing not useful test related to reflect_on_all_associations
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/reflection_test.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/test/cases/reflection_test.rb b/activerecord/test/cases/reflection_test.rb
index b5314bc9be..4fc738da94 100644
--- a/activerecord/test/cases/reflection_test.rb
+++ b/activerecord/test/cases/reflection_test.rb
@@ -186,14 +186,6 @@ class ReflectionTest < ActiveRecord::TestCase
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