summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-09 10:14:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-09 10:14:16 +0000
commit8776a09d4eed5662ee28eff0d829e880cc001684 (patch)
treea3d7a4697a4d361b9611375670ef21a68488efda /test
parent28f619e301cf5f266f38fe764c4018b7fabc77cb (diff)
Use assert_respond_to
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ripper/test_scanner_events.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb
index 94df6616e8..db15fd46ae 100644
--- a/test/ripper/test_scanner_events.rb
+++ b/test/ripper/test_scanner_events.rb
@@ -15,7 +15,7 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase
def test_event_coverage
dispatched = Ripper::SCANNER_EVENTS.map {|event,_| event }
dispatched.each do |e|
- assert_equal true, respond_to?("test_#{e}", true), "event not tested: #{e}"
+ assert_respond_to(self, ["test_#{e}", true], "event not tested: #{e}")
end
end