diff options
author | Marc-Andre Lafortune <github@marc-andre.ca> | 2019-12-23 02:34:16 -0500 |
---|---|---|
committer | Marc-Andre Lafortune <github@marc-andre.ca> | 2019-12-23 16:47:33 -0500 |
commit | 819b604037c317d2b53a1aaca67aef25da2d5ec9 (patch) | |
tree | 0dfc97bef8bdac44091e2c627325ed61fd61a16c /test/ruby/test_exception.rb | |
parent | df6f5c44af1f261fa940ec3954468be8b820450e (diff) |
Reword keyword arguments warning messages to convey these are deprecation warnings
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index df7a4e7cf5..79ac11ab26 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -1208,7 +1208,7 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status| assert_raise(ArgumentError) {warn("test warning", uplevel: -1)} assert_in_out_err(["-e", "warn 'ok', uplevel: 1"], '', [], /warning:/) warning = capture_warning_warn {warn("test warning", {uplevel: 0})} - assert_equal("#{__FILE__}:#{__LINE__-1}: warning: The last argument is used as keyword parameters; maybe ** should be added to the call\n", warning[0]) + assert_equal("#{__FILE__}:#{__LINE__-1}: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call\n", warning[0]) assert_match(/warning: The called method (?:`.*' )?is defined here|warning: test warning/, warning[1]) warning = capture_warning_warn {warn("test warning", **{uplevel: 0})} assert_equal("#{__FILE__}:#{__LINE__-1}: warning: test warning\n", warning[0]) |