diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb index 3c036aa5fe..25747b9546 100644 --- a/spec/bundler/support/helpers.rb +++ b/spec/bundler/support/helpers.rb @@ -344,7 +344,7 @@ module Spec end def with_path_added(path) - with_path_as(path.to_s + ":" + ENV["PATH"]) do + with_path_as([path.to_s, ENV["PATH"]].join(File::PATH_SEPARATOR)) do yield end end