summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-31 04:31:45 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-31 04:31:45 +0000
commit070d731bddd537cb1b0f470bd82cc497fc04520f (patch)
treedb22e6c7fedeb8a3bca3b1b937c8e5ac4b5acbff
parentcec2138855e68ee7a3adaa6a82bb85497714b321 (diff)
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
-rw-r--r--test/lib/test/unit/assertions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb
index 97d9d4e..5425bf7 100644
--- a/test/lib/test/unit/assertions.rb
+++ b/test/lib/test/unit/assertions.rb
@@ -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)