diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-26 20:11:24 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-05 10:50:02 +0900 |
commit | 871005bdd2044ef7bd532a7cc4f0756217161f97 (patch) | |
tree | 25b8e52a8a161bd09256d05e28feb9fd7df21c58 /test/rubygems | |
parent | caa9d0bd7851c3b8cc9064987109eed9952a7c90 (diff) | |
download | ruby-871005bdd2044ef7bd532a7cc4f0756217161f97.tar.gz |
[rubygems/rubygems] Suppress keywords warning in ruby 2.7
https://github.com/rubygems/rubygems/commit/892bfc11fe
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_require.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb index 5ca51fffa5..38303cd44f 100644 --- a/test/rubygems/test_require.rb +++ b/test/rubygems/test_require.rb @@ -520,7 +520,7 @@ class TestGemRequire < Gem::TestCase def test_no_other_behavioral_changes_with_kernel_warn lib = File.realpath("../../../lib", __FILE__) Dir.mktmpdir("warn_test") do |dir| - File.write(dir + "/main.rb", "warn({x:1}, {y:2}, {})\n") + File.write(dir + "/main.rb", "warn({x:1}, {y:2}, [])\n") _, err = capture_subprocess_io do system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb") end |