ruby-changes:66185
From: Hiroshi <ko1@a...>
Date: Wed, 12 May 2021 17:25:28 +0900 (JST)
Subject: [ruby-changes:66185] 7b3b48549b (master): [rubygems/rubygems] capture_output will return empty string, not nil
https://git.ruby-lang.org/ruby.git/commit/?id=7b3b48549b From 7b3b48549b189315a307703f93facb603339179e Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Tue, 11 May 2021 13:12:33 +0900 Subject: [rubygems/rubygems] capture_output will return empty string, not nil https://github.com/rubygems/rubygems/commit/3fa93f6144 --- test/rubygems/test_gem_specification.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index eff7c85..7e82793 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -3066,7 +3066,7 @@ Please report a bug if this causes problems. https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_specification.rb#L3066 out, err = capture_output do @a1.add_runtime_dependency "b", "~> 3.0", "~> 3.0" end - assert_nil out + assert_empty out assert_equal(expected, err) end -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/