ruby-changes:69605
From: David <ko1@a...>
Date: Fri, 5 Nov 2021 23:21:09 +0900 (JST)
Subject: [ruby-changes:69605] 87a8b22455 (master): [rubygems/rubygems] Simplify `--destdir` test
https://git.ruby-lang.org/ruby.git/commit/?id=87a8b22455 From 87a8b22455128adc4c3cdd5c1e0c4d25ae1edac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Fri, 5 Nov 2021 12:20:05 +0100 Subject: [rubygems/rubygems] Simplify `--destdir` test https://github.com/rubygems/rubygems/commit/0571fd1ec6 --- test/rubygems/test_gem_commands_setup_command.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb index 1de9a477dbf..9ce162b1232 100644 --- a/test/rubygems/test_gem_commands_setup_command.rb +++ b/test/rubygems/test_gem_commands_setup_command.rb @@ -256,12 +256,10 @@ class TestGemCommandsSetupCommand < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_setup_command.rb#L256 @cmd.install_default_bundler_gem bin_dir - bundler_spec = Gem::Specification.load("bundler/bundler.gemspec") - default_spec_path = File.join(Gem.default_specifications_dir, "#{bundler_spec.full_name}.gemspec") - spec = Gem::Specification.load(default_spec_path) + spec = Gem::Specification.load("bundler/bundler.gemspec") spec.executables.each do |e| - assert_path_exist File.join destdir, spec.bin_dir.gsub(/^[a-zA-Z]:/, ''), e + assert_path_exist File.join destdir, @gemhome.gsub(/^[a-zA-Z]:/, ''), 'gems', spec.full_name, spec.bindir, e end end end -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/