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

Relaxed warning assertions

This commit is contained in:
Nobuyoshi Nakada 2019-11-11 12:09:19 +09:00
parent 69ec3f70fa
commit 6f9be8505d
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -509,11 +509,11 @@ class TestGemRequire < Gem::TestCase
_, err = capture_subprocess_io do
system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
end
assert_equal "main.rb:1: warning: uplevel\ntest\n", err
assert_includes err, "main.rb:1: warning: uplevel\ntest\n"
_, err = capture_subprocess_io do
system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
end
assert_equal "main.rb:1: warning: uplevel\ntest\n", err
assert_includes err, "main.rb:1: warning: uplevel\ntest\n"
end
end
@ -524,11 +524,11 @@ class TestGemRequire < Gem::TestCase
_, err = capture_subprocess_io do
system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
end
assert_equal "{:x=>1}\n{:y=>2}\n", err
assert_includes err, "{:x=>1}\n{:y=>2}\n"
_, err = capture_subprocess_io do
system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
end
assert_equal "{:x=>1}\n{:y=>2}\n", err
assert_includes err, "{:x=>1}\n{:y=>2}\n"
end
end
end