aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-04-26 20:10:25 -0700
committerGitHub <noreply@github.com>2017-04-26 20:10:25 -0700
commit971ceeb844b70a510d2e52c34108894248522797 (patch)
treeeeffbcba2e209dc5c0f757c513ca4149d107f2e6 /activerecord
parentdb2760bdb15c36d413159d3cefcb0b7036a61e22 (diff)
parent111ae374015c43a69a2d3d2bf74466c4af8d975f (diff)
downloadrails-971ceeb844b70a510d2e52c34108894248522797.tar.gz
rails-971ceeb844b70a510d2e52c34108894248522797.tar.bz2
rails-971ceeb844b70a510d2e52c34108894248522797.zip
Merge pull request #28885 from kamipo/remove_useless_test_case
Remove useless test case
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/associations/has_many_associations_test.rb5
-rw-r--r--activerecord/test/models/company.rb8
2 files changed, 0 insertions, 13 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb
index 377678d529..1eb10c1dbe 100644
--- a/activerecord/test/cases/associations/has_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_many_associations_test.rb
@@ -2037,11 +2037,6 @@ class HasManyAssociationsTest < ActiveRecord::TestCase
assert_equal client_association.new.attributes, client_association.send(:new).attributes
end
- def test_respond_to_private_class_methods
- client_association = companies(:first_firm).clients
- assert !client_association.respond_to?(:private_method)
- end
-
def test_creating_using_primary_key
firm = Firm.all.merge!(order: "id").first
client = firm.clients_using_primary_key.create!(name: "test")
diff --git a/activerecord/test/models/company.rb b/activerecord/test/models/company.rb
index 20e37710e7..d269a95e8c 100644
--- a/activerecord/test/models/company.rb
+++ b/activerecord/test/models/company.rb
@@ -170,14 +170,6 @@ class Client < Company
def overwrite_to_raise
end
-
- class << self
- private
-
- def private_method
- "darkness"
- end
- end
end
class ExclusivelyDependentFirm < Company