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
@ -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…
x
Reference in New Issue
Block a user