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_struct.rb | |
parent | df6f5c44af1f261fa940ec3954468be8b820450e (diff) | |
download | ruby-819b604037c317d2b53a1aaca67aef25da2d5ec9.tar.gz |
Reword keyword arguments warning messages to convey these are deprecation warnings
Diffstat (limited to 'test/ruby/test_struct.rb')
-rw-r--r-- | test/ruby/test_struct.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_struct.rb b/test/ruby/test_struct.rb index 6f31b334b1..f13afbbdd4 100644 --- a/test/ruby/test_struct.rb +++ b/test/ruby/test_struct.rb @@ -115,7 +115,7 @@ module TestStruct assert_equal "#{@Struct}::KeywordInitTrue(keyword_init: true)", @Struct::KeywordInitTrue.inspect # eval is needed to prevent the warning duplication filter k = eval("Class.new(@Struct::KeywordInitFalse) {def initialize(**) end}") - assert_warn(/The last argument is used as keyword parameters/) {k.new(a: 1, b: 2)} + assert_warn(/Using the last argument as keyword parameters is deprecated/) {k.new(a: 1, b: 2)} k = Class.new(@Struct::KeywordInitTrue) {def initialize(**) end} assert_warn('') {k.new(a: 1, b: 2)} |