summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorsodacris <wjxa20152015@gmail.com>2024-11-22 19:58:38 +0800
committergit <svn-admin@ruby-lang.org>2024-11-22 13:36:21 +0000
commit0989400a925cd201defdca9eb28eb87200b30785 (patch)
tree53c3144856db822b4ae9eb25e7f073eb213cb55a /spec
parent80cfa57234255667a86d46096093099349a7262a (diff)
[rubygems/rubygems] fix bundle which commands on windows
https://github.com/rubygems/rubygems/commit/9e0018d9fe
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/bundler/bundler_spec.rb10
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