[rubygems/rubygems] Rewrite with capture_output

https://github.com/rubygems/rubygems/commit/a091004ded
This commit is contained in:
Hiroshi SHIBATA 2021-05-11 13:04:12 +09:00
Родитель 5ed9d3f16f
Коммит cd375e455e
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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)