зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Rewrite with capture_output
https://github.com/rubygems/rubygems/commit/a091004ded
This commit is contained in:
Родитель
5ed9d3f16f
Коммит
cd375e455e
|
@ -3063,9 +3063,11 @@ Please report a bug if this causes problems.
|
|||
|
||||
def test_duplicate_runtime_dependency
|
||||
expected = "WARNING: duplicated b dependency [\"~> 3.0\", \"~> 3.0\"]\n"
|
||||
assert_output nil, expected do
|
||||
out, err = capture_output do
|
||||
@a1.add_runtime_dependency "b", "~> 3.0", "~> 3.0"
|
||||
end
|
||||
assert_nil out
|
||||
assert_equal(expected, err)
|
||||
end
|
||||
|
||||
def set_orig(cls)
|
||||
|
|
Загрузка…
Ссылка в новой задаче