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

test/lib/test/unit/assertions.rb: explicit delegation of keyword arguments

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2018-08-31 04:31:45 +00:00
parent cec2138855
commit 070d731bdd

View file

@ -515,8 +515,8 @@ EOT
$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)