зеркало из https://github.com/github/ruby.git
Now keyword parameter warnings are suppressed by 871005bdd2
This reverts commits: *2a490d5660
Suppress assert_match warnings. *d4a86e407e
Assert warnings message for the last argument is keyword parameter.
This commit is contained in:
Родитель
212da9a6ae
Коммит
3e3cc0885a
|
@ -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_match(/main.rb:1: warning: The last argument is used as the keyword parameter/, err)
|
||||
assert_equal "{:x=>1}\n{:y=>2}\n", err
|
||||
_, err = capture_subprocess_io do
|
||||
system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
|
||||
end
|
||||
assert_match(/main.rb:1: warning: The last argument is used as the keyword parameter/, err)
|
||||
assert_equal "{:x=>1}\n{:y=>2}\n", err
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче