diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-07-15 11:59:50 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-07-15 12:12:38 +0900 |
commit | 8f650d6db83e95a385aeb18571cab34328089cf6 (patch) | |
tree | 3b061ec16e76c9c3fbd7d621e9b3b2cd2417b078 /activerecord | |
parent | c1f9fa8c69590222fac43d58bf64ef4a1225d7ce (diff) | |
download | rails-8f650d6db83e95a385aeb18571cab34328089cf6.tar.gz rails-8f650d6db83e95a385aeb18571cab34328089cf6.tar.bz2 rails-8f650d6db83e95a385aeb18571cab34328089cf6.zip |
Remove outdated `test_scoped_responds_to_delegated_methods`
This test was added at 74ed123 to ensure `respond_to?` delegate methods
to `Array` and `arel_table`. But array method delegation was removed at
9d79334 in favor of including `Enumerable`. And now `Relation` has
`insert`, `update`, and `delete` methods (63480d2, 8d31c9f, d5f9173).
So this delegation test is already outdated.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index eb3449b331..c77048a756 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -586,14 +586,6 @@ class RelationTest < ActiveRecord::TestCase assert_nothing_raised { Topic.reorder([]) } end - def test_scoped_responds_to_delegated_methods - relation = Topic.all - - ["map", "uniq", "sort", "insert", "delete", "update"].each do |method| - assert_respond_to relation, method, "Topic.all should respond to #{method.inspect}" - end - end - def test_respond_to_delegates_to_arel relation = Topic.all fake_arel = Struct.new(:responds) { |