summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-01-20 12:45:03 +0900
committergit <svn-admin@ruby-lang.org>2023-01-20 10:39:57 +0000
commit53cd5796c529c73704d33de0cc1f8d2d9130dd87 (patch)
treed04549431cdd785539041556419294ec91c530ea /test
parentcce3960964784e57cba14762503c5fdd688e9919 (diff)
[rubygems/rubygems] Clean test output
The output from the command is mixed in this test, even when successful. Use the output as a part of the message on failure instead. https://github.com/rubygems/rubygems/commit/960509a133
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_require.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb
index 43774d638e..73ae0caf7d 100644
--- a/test/rubygems/test_require.rb
+++ b/test/rubygems/test_require.rb
@@ -680,8 +680,7 @@ class TestGemRequire < Gem::TestCase
require "json"
RUBY
out = Gem::Util.popen({ "GEM_HOME" => @gemhome }, *ruby_with_rubygems_in_load_path, "-e", cmd)
- puts out
- assert $?.success?
+ assert_predicate $?, :success?, "Require failed due to #{out}"
end
private