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:
parent
69ec3f70fa
commit
6f9be8505d
1 changed files with 4 additions and 4 deletions
|
@ -509,11 +509,11 @@ class TestGemRequire < Gem::TestCase
|
||||||
_, err = capture_subprocess_io do
|
_, err = capture_subprocess_io do
|
||||||
system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
|
system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
|
||||||
end
|
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
|
_, err = capture_subprocess_io do
|
||||||
system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
|
system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
|
||||||
end
|
end
|
||||||
assert_equal "main.rb:1: warning: uplevel\ntest\n", err
|
assert_includes err, "main.rb:1: warning: uplevel\ntest\n"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -524,11 +524,11 @@ class TestGemRequire < Gem::TestCase
|
||||||
_, err = capture_subprocess_io do
|
_, err = capture_subprocess_io do
|
||||||
system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
|
system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
|
||||||
end
|
end
|
||||||
assert_equal "{:x=>1}\n{:y=>2}\n", err
|
assert_includes err, "{:x=>1}\n{:y=>2}\n"
|
||||||
_, err = capture_subprocess_io do
|
_, err = capture_subprocess_io do
|
||||||
system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
|
system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
|
||||||
end
|
end
|
||||||
assert_equal "{:x=>1}\n{:y=>2}\n", err
|
assert_includes err, "{:x=>1}\n{:y=>2}\n"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue