ruby-changes:61096
From: David <ko1@a...>
Date: Fri, 8 May 2020 14:14:06 +0900 (JST)
Subject: [ruby-changes:61096] a49a131163 (master): [rubygems/rubygems] Extract `gem_make_out` contents to a variable
https://git.ruby-lang.org/ruby.git/commit/?id=a49a131163 From a49a131163dc9f7ef2176e8ea5394e934fd0c768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Sat, 2 May 2020 12:00:18 +0200 Subject: [rubygems/rubygems] Extract `gem_make_out` contents to a variable Co-authored-by: MSP-Greg <MSP-Greg@u...> https://github.com/rubygems/rubygems/commit/5f2b7474eb diff --git a/test/rubygems/test_gem_ext_builder.rb b/test/rubygems/test_gem_ext_builder.rb index 1a7587a..d85dcfd 100644 --- a/test/rubygems/test_gem_ext_builder.rb +++ b/test/rubygems/test_gem_ext_builder.rb @@ -233,19 +233,20 @@ install: https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_ext_builder.rb#L233 assert_equal '', @ui.error gem_make_out = File.join @spec.extension_dir, 'gem_make.out' + cmd_make_out = File.read(gem_make_out) assert_match %r{#{Regexp.escape Gem.ruby}.* extconf\.rb}, - File.read(gem_make_out) + cmd_make_out assert_match %r{: No such file}, - File.read(gem_make_out) + cmd_make_out refute_path_exists @spec.gem_build_complete_path skip "Gem.ruby is not the name of the binary being run in the end" \ - unless File.read(gem_make_out).include? "#{Gem.ruby}:" + unless cmd_make_out.include? "#{Gem.ruby}:" assert_match %r{#{Regexp.escape Gem.ruby}: No such file}, - File.read(gem_make_out) + cmd_make_out assert_equal cwd, Dir.pwd end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/