Skip to content

Commit 7fce340

Browse files
committed
fix(CI): In the gem installation test, update the PATH using the OS specific directory and path separators. This should fix the test on Windows.
1 parent d92888e commit 7fce340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/gem_installation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def run_gem_installation_test(gem_bin, gem_module)
2222
gem_file = gem_build.lines.grep(/File:/).first.split.last
2323
gem_file = File.expand_path(File.join(gem_dir, gem_file))
2424

25-
env = { 'GEM_HOME' => gem_home, 'GEM_PATH' => gem_home, 'PATH' => "#{gem_home}/bin:#{ENV['PATH']}" }
25+
env = { 'GEM_HOME' => gem_home, 'GEM_PATH' => gem_home, 'PATH' => "#{gem_home}#{File::SEPARATOR}bin#{File::PATH_SEPARATOR}#{ENV['PATH']}" }
2626
system(env, 'gem', 'install', '--local', gem_file, exception: true)
2727

2828
out_dir = File.join('test', 'tmp', "gem_install_#{gem_bin.tr('-', '_')}")

0 commit comments

Comments
 (0)