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:
parent
28f619e301
commit
8776a09d4e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue