diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-24 01:24:30 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-24 01:24:30 +0900 |
commit | fb545743932a5efd5a34ed9da981248dae3cc5ff (patch) | |
tree | b42406c5ba4d5cb7076995f005b884244a1f16f6 | |
parent | 221ca0f8281d39f0dfdfe13b2448875384bbf735 (diff) |
Pass keyword options in assert_syntax_error
-rw-r--r-- | tool/lib/test/unit/assertions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lib/test/unit/assertions.rb b/tool/lib/test/unit/assertions.rb index e740b17aa6..14442c0029 100644 --- a/tool/lib/test/unit/assertions.rb +++ b/tool/lib/test/unit/assertions.rb @@ -238,8 +238,8 @@ EOT # compatibility with test-unit alias pend skip - def assert_syntax_error(code, error, *args) - prepare_syntax_check(code, *args) do |src, fname, line, mesg| + def assert_syntax_error(code, error, *args, **opt) + prepare_syntax_check(code, *args, **opt) do |src, fname, line, mesg| yield if defined?(yield) e = assert_raise(SyntaxError, mesg) do syntax_check(src, fname, line) |