ruby-changes:52386
From: mame <ko1@a...>
Date: Fri, 31 Aug 2018 13:31:54 +0900 (JST)
Subject: [ruby-changes:52386] mame:r64595 (trunk): test/lib/test/unit/assertions.rb: explicit delegation of keyword arguments
mame 2018-08-31 13:31:45 +0900 (Fri, 31 Aug 2018) New Revision: 64595 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64595 Log: test/lib/test/unit/assertions.rb: explicit delegation of keyword arguments Modified files: trunk/test/lib/test/unit/assertions.rb Index: test/lib/test/unit/assertions.rb =================================================================== --- test/lib/test/unit/assertions.rb (revision 64594) +++ test/lib/test/unit/assertions.rb (revision 64595) @@ -515,8 +515,8 @@ EOT https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/assertions.rb#L515 $VERBOSE = verbose end - def assert_valid_syntax(code, *args) - prepare_syntax_check(code, *args) do |src, fname, line, mesg| + def assert_valid_syntax(code, *args, **opt) + prepare_syntax_check(code, *args, **opt) do |src, fname, line, mesg| yield if defined?(yield) assert_nothing_raised(SyntaxError, mesg) do assert_equal(:ok, syntax_check(src, fname, line), mesg) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/