ruby-changes:66171
From: Hiroshi <ko1@a...>
Date: Wed, 12 May 2021 17:25:15 +0900 (JST)
Subject: [ruby-changes:66171] cd375e455e (master): [rubygems/rubygems] Rewrite with capture_output
https://git.ruby-lang.org/ruby.git/commit/?id=cd375e455e From cd375e455e21e19d966c6cee86714a41cac67878 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Tue, 11 May 2021 13:04:12 +0900 Subject: [rubygems/rubygems] Rewrite with capture_output https://github.com/rubygems/rubygems/commit/a091004ded --- test/rubygems/test_gem_specification.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index 601cebe..eff7c85 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. https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_specification.rb#L3063 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) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/