diff options
-rw-r--r-- | test/rubygems/test_gem_package.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_package.rb b/test/rubygems/test_gem_package.rb index 34660bdccd..e3dce87c95 100644 --- a/test/rubygems/test_gem_package.rb +++ b/test/rubygems/test_gem_package.rb @@ -737,9 +737,7 @@ class TestGemPackage < Gem::Package::TarTestCase file = 'foo//file.rb'.dup file.taint if RUBY_VERSION < '2.7' - destination = @destination.sub '/', '//' - - destination = package.install_location file, destination + destination = package.install_location file, @destination assert_equal File.join(@destination, 'foo', 'file.rb'), destination refute destination.tainted? if RUBY_VERSION < '2.7' |