diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/bundler/bundler/bundler_spec.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/bundler/bundler/bundler_spec.rb b/spec/bundler/bundler/bundler_spec.rb index 7cfc12a6f6..27bcb92659 100644 --- a/spec/bundler/bundler/bundler_spec.rb +++ b/spec/bundler/bundler/bundler_spec.rb @@ -174,7 +174,13 @@ RSpec.describe Bundler do end end - let(:expected) { "executable" } + let(:expected) do + if Gem.win_platform? + "executable.exe" + else + "executable" + end + end before do ENV["PATH"] = path.join(File::PATH_SEPARATOR) @@ -200,7 +206,7 @@ RSpec.describe Bundler do context "when the executable in inside a quoted path" do let(:expected) do if Gem.win_platform? - "C:/e/executable" + "C:/e/executable.exe" else "/e/executable" end |
