Skip to content

Commit a091004

Browse files
committed
Rewrite with capture_output
1 parent c46185a commit a091004

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/rubygems/test_gem_specification.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3063,9 +3063,11 @@ def test_unresolved_specs_with_versions
30633063

30643064
def test_duplicate_runtime_dependency
30653065
expected = "WARNING: duplicated b dependency [\"~> 3.0\", \"~> 3.0\"]\n"
3066-
assert_output nil, expected do
3066+
out, err = capture_output do
30673067
@a1.add_runtime_dependency "b", "~> 3.0", "~> 3.0"
30683068
end
3069+
assert_nil out
3070+
assert_equal(expected, err)
30693071
end
30703072

30713073
def set_orig(cls)

0 commit comments

Comments
 (0)