diff options
-rw-r--r-- | lib/rubygems/test_case.rb | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -26,7 +26,20 @@ begin rescue LoadError end -require 'bundler' require 'minitest/autorun' @@ -250,16 +263,16 @@ class Gem::TestCase < Minitest::Test def assert_contains_make_command(target, output, msg = nil) if output.match(/\n/) msg = message(msg) do - 'Expected output containing make command "%s": %s' % [ ('%s %s' % [make_command, target]).rstrip, - output.inspect, ] end else msg = message(msg) do 'Expected make command "%s": %s' % [ ('%s %s' % [make_command, target]).rstrip, - output.inspect, ] end end @@ -298,6 +311,7 @@ class Gem::TestCase < Minitest::Test ENV['XDG_CONFIG_HOME'] = nil ENV['XDG_DATA_HOME'] = nil ENV['SOURCE_DATE_EPOCH'] = nil ENV["TMPDIR"] = @tmp @current_dir = Dir.pwd |