summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_installer.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-07-14 13:16:09 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-31 21:07:19 +0900
commitc090c64b4faa429c9f0f7c361e932e6b1a960a3d (patch)
tree8a81500f2bee986ae0bd1328d9e59d61400e78ad /test/rubygems/test_gem_installer.rb
parent65a4b03781764cccf7153847b996ebd1db65335f (diff)
[rubygems/rubygems] Prefer the standard separator on Windows
It seems like the most common case since it requires no tricks on our CI environment. Co-authored-by: MSP-Greg <MSP-Greg@users.noreply.github.com> https://github.com/rubygems/rubygems/commit/751c475574
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3379
Diffstat (limited to 'test/rubygems/test_gem_installer.rb')
-rw-r--r--test/rubygems/test_gem_installer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb
index 3cf49a7f8d..766a4ee8f2 100644
--- a/test/rubygems/test_gem_installer.rb
+++ b/test/rubygems/test_gem_installer.rb
@@ -196,7 +196,7 @@ gem 'other', version
bin_dir = installer.bin_dir
if Gem.win_platform?
- bin_dir = bin_dir.downcase.gsub(File::SEPARATOR, File::ALT_SEPARATOR)
+ bin_dir = bin_dir.downcase
end
orig_PATH, ENV['PATH'] =
@@ -239,7 +239,7 @@ gem 'other', version
expected = installer.bin_dir
if Gem.win_platform?
- expected = expected.downcase.gsub(File::SEPARATOR, File::ALT_SEPARATOR)
+ expected = expected.downcase
end
assert_match expected, @ui.error