1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use assert_respond_to

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-03-09 10:14:16 +00:00
parent 28f619e301
commit 8776a09d4e

View file

@ -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