summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-11 13:04:12 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-12 17:24:43 +0900
commitcd375e455e21e19d966c6cee86714a41cac67878 (patch)
tree190b2649acb6851ba7b9d7286ff6050387f9aca7 /test/rubygems
parent5ed9d3f16f0b6fd9a93816740f8b41c69d03734a (diff)
[rubygems/rubygems] Rewrite with capture_output
https://github.com/rubygems/rubygems/commit/a091004ded
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4491
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_specification.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index 601cebe541..eff7c85a6d 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -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)