ruby-changes:54992
From: nobu <ko1@a...>
Date: Sat, 9 Mar 2019 19:14:21 +0900 (JST)
Subject: [ruby-changes:54992] nobu:r67199 (trunk): Use assert_respond_to
nobu 2019-03-09 19:14:16 +0900 (Sat, 09 Mar 2019) New Revision: 67199 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67199 Log: Use assert_respond_to Modified files: trunk/test/ripper/test_scanner_events.rb Index: test/ripper/test_scanner_events.rb =================================================================== --- test/ripper/test_scanner_events.rb (revision 67198) +++ test/ripper/test_scanner_events.rb (revision 67199) @@ -15,7 +15,7 @@ class TestRipper::ScannerEvents < Test:: https://github.com/ruby/ruby/blob/trunk/test/ripper/test_scanner_events.rb#L15 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/