1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use %w instead of %i not to create unused IDs

This commit is contained in:
Nobuyoshi Nakada 2020-05-09 20:13:30 +09:00
parent 595e74ae4b
commit 883214f8e9
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -31,7 +31,7 @@ class TestIO_Console < Test::Unit::TestCase
end
def test_failed_path
exceptions = %i[ENODEV ENOTTY EBADF ENXIO].map {|e|
exceptions = %w[ENODEV ENOTTY EBADF ENXIO].map {|e|
Errno.const_get(e) if Errno.const_defined?(e)
}
exceptions.compact!