aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relation
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-01-17 17:12:57 -0500
committerGitHub <noreply@github.com>2019-01-17 17:12:57 -0500
commite65a3a0ce585b1fbcd35872616717595d6950fca (patch)
treef1373015e625acc65fd0997cbf61a2a63e1b6720 /activerecord/test/cases/relation
parentcc0dd1d371868fe34fba6b58d22a8ba0714d8ae7 (diff)
parent4d51efe24e461a2a3ed562787308484cd48370c7 (diff)
downloadrails-e65a3a0ce585b1fbcd35872616717595d6950fca.tar.gz
rails-e65a3a0ce585b1fbcd35872616717595d6950fca.tar.bz2
rails-e65a3a0ce585b1fbcd35872616717595d6950fca.zip
Merge pull request #34954 from rails/rm-remove-5.2-deprecations
Remove all code deprecated in Rails 5.2
Diffstat (limited to 'activerecord/test/cases/relation')
-rw-r--r--activerecord/test/cases/relation/delegation_test.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/activerecord/test/cases/relation/delegation_test.rb b/activerecord/test/cases/relation/delegation_test.rb
index a8030c2d64..b600c999a6 100644
--- a/activerecord/test/cases/relation/delegation_test.rb
+++ b/activerecord/test/cases/relation/delegation_test.rb
@@ -23,23 +23,8 @@ module ActiveRecord
end
end
- module DeprecatedArelDelegationTests
- AREL_METHODS = [
- :with, :orders, :froms, :project, :projections, :taken, :constraints, :exists, :locked, :where_sql,
- :ast, :source, :join_sources, :to_dot, :create_insert, :create_true, :create_false
- ]
-
- def test_deprecate_arel_delegation
- AREL_METHODS.each do |method|
- assert_deprecated { target.public_send(method) }
- assert_deprecated { target.public_send(method) }
- end
- end
- end
-
class DelegationAssociationTest < ActiveRecord::TestCase
include ArrayDelegationTests
- include DeprecatedArelDelegationTests
def target
Post.new.comments
@@ -48,7 +33,6 @@ module ActiveRecord
class DelegationRelationTest < ActiveRecord::TestCase
include ArrayDelegationTests
- include DeprecatedArelDelegationTests
def target
Comment.all