diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_exception.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 574ffbc537..61521cbfff 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -1121,6 +1121,7 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status| warning = capture_warning_warn {obj.w(1)} assert_equal("#{__FILE__}:#{__LINE__-1}: warning: test warning\n", warning[0]) assert_raise(ArgumentError) {warn("test warning", uplevel: -1)} + assert_in_out_err(["-e", "warn 'ok', uplevel: 1"], '', [], /warning:/) end def test_warning_warn_invalid_argument |