aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relations_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-02-06 04:37:54 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-02-06 04:58:45 +0900
commit0f3e8e1ebb1255bfda455753b1b2087315f46fdc (patch)
treeaef0f617f17d55c8ab98675fcb8440cdb6a0e01c /activerecord/test/cases/relations_test.rb
parent7caea98e189c02721b2e944a074c405b033852eb (diff)
downloadrails-0f3e8e1ebb1255bfda455753b1b2087315f46fdc.tar.gz
rails-0f3e8e1ebb1255bfda455753b1b2087315f46fdc.tar.bz2
rails-0f3e8e1ebb1255bfda455753b1b2087315f46fdc.zip
Relation no longer respond to Arel methods
This follows up d97980a16d76ad190042b4d8578109714e9c53d0.
Diffstat (limited to 'activerecord/test/cases/relations_test.rb')
-rw-r--r--activerecord/test/cases/relations_test.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb
index 756eeca35f..6b5b877260 100644
--- a/activerecord/test/cases/relations_test.rb
+++ b/activerecord/test/cases/relations_test.rb
@@ -480,21 +480,6 @@ class RelationTest < ActiveRecord::TestCase
assert_nothing_raised { Topic.reorder([]) }
end
- def test_respond_to_delegates_to_arel
- relation = Topic.all
- fake_arel = Struct.new(:responds) {
- def respond_to?(method, access = false)
- responds << [method, access]
- end
- }.new []
-
- relation.extend(Module.new { attr_accessor :arel })
- relation.arel = fake_arel
-
- relation.respond_to?(:matching_attributes)
- assert_equal [:matching_attributes, false], fake_arel.responds.first
- end
-
def test_respond_to_dynamic_finders
relation = Topic.all