summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-11-05 12:20:05 +0100
committergit <svn-admin@ruby-lang.org>2021-11-05 23:20:48 +0900
commit87a8b22455128adc4c3cdd5c1e0c4d25ae1edac3 (patch)
tree360acd34d4ce6cee519f8dcaed404440029d81cc /test
parente60c1f7556878c9e65a6adad537f29c07aea64ee (diff)
[rubygems/rubygems] Simplify `--destdir` test
https://github.com/rubygems/rubygems/commit/0571fd1ec6
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_gem_commands_setup_command.rb6
1 files 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 1de9a477db..9ce162b123 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
@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