From 0989400a925cd201defdca9eb28eb87200b30785 Mon Sep 17 00:00:00 2001 From: sodacris Date: Fri, 22 Nov 2024 19:58:38 +0800 Subject: [rubygems/rubygems] fix bundle which commands on windows https://github.com/rubygems/rubygems/commit/9e0018d9fe --- spec/bundler/bundler/bundler_spec.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'spec') 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 -- cgit v1.2.3