summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-04 22:18:27 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-04 22:18:27 +0100
commitfbb9d1e52eb10fdf059c110610479059ef4ee122 (patch)
treee200ecae18055995ef588b4558b9583d73f960a3
parent28c44b4eb23a22a390622c6d3b5fc4618d48dbb2 (diff)
downloadbundler-actions/windows.tar.gz
Another File::PATH_SEPARATOR fixactions/windows
-rw-r--r--spec/runtime/with_unbundled_env_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/runtime/with_unbundled_env_spec.rb b/spec/runtime/with_unbundled_env_spec.rb
index 72cc6eb064..81fdf0aaea 100644
--- a/spec/runtime/with_unbundled_env_spec.rb
+++ b/spec/runtime/with_unbundled_env_spec.rb
@@ -24,7 +24,7 @@ RSpec.describe "Bundler.with_env helpers" do
it "should return the GEM_PATH present before bundle was activated" do
code = "print Bundler.original_env['GEM_PATH']"
- gem_path = ENV["GEM_PATH"] + ":/foo"
+ gem_path = ENV["GEM_PATH"] + "#{File::PATH_SEPARATOR}/foo"
with_gem_path_as(gem_path) do
bundle_exec_ruby!(code.dump)
expect(last_command.stdboth).to eq(gem_path)
@@ -35,9 +35,9 @@ RSpec.describe "Bundler.with_env helpers" do
create_file("exe.rb", <<-'RB')
count = ARGV.first.to_i
exit if count < 0
- STDERR.puts "#{count} #{ENV["PATH"].end_with?(":/foo")}"
+ STDERR.puts "#{count} #{ENV["PATH"].end_with?("#{File::PATH_SEPARATOR}/foo")}"
if count == 2
- ENV["PATH"] = "#{ENV["PATH"]}:/foo"
+ ENV["PATH"] = "#{ENV["PATH"]}#{File::PATH_SEPARATOR}/foo"
end
exec(Gem.ruby, __FILE__, (count - 1).to_s)
RB