Fixed misspellings

Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
This commit is contained in:
Nobuyoshi Nakada 2019-12-20 09:19:39 +09:00
parent 2898367b3a
commit db16629008
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
45 changed files with 79 additions and 79 deletions

View file

@ -113,7 +113,7 @@ module TestStruct
assert_equal @Struct::KeywordInitTrue.new(a: 1, b: 2).values, @Struct::KeywordInitFalse.new(1, 2).values
assert_equal "#{@Struct}::KeywordInitFalse", @Struct::KeywordInitFalse.inspect
assert_equal "#{@Struct}::KeywordInitTrue(keyword_init: true)", @Struct::KeywordInitTrue.inspect
# eval is neede to prevent the warning duplication filter
# 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 the keyword parameter/) {k.new(a: 1, b: 2)}
k = Class.new(@Struct::KeywordInitTrue) {def initialize(**) end}