From 8962b8418c03e8a353994e43a1259e2a2e141b1d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 5 Sep 2022 13:30:17 +0900 Subject: [PATCH] x86-mswin32 and x64-mswin64 returns MSWIN platform --- spec/bundler/commands/install_spec.rb | 2 +- spec/bundler/runtime/platform_spec.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/bundler/commands/install_spec.rb b/spec/bundler/commands/install_spec.rb index 56945346e15143..71cd25b46c42fd 100644 --- a/spec/bundler/commands/install_spec.rb +++ b/spec/bundler/commands/install_spec.rb @@ -293,7 +293,7 @@ G run "require 'platform_specific' ; puts PLATFORM_SPECIFIC" - expect(out).to eq("1.0 x86-mswin32") + expect(out).to eq("1.0.0 MSWIN") end end diff --git a/spec/bundler/runtime/platform_spec.rb b/spec/bundler/runtime/platform_spec.rb index caf69bf085c871..15ee633d955351 100644 --- a/spec/bundler/runtime/platform_spec.rb +++ b/spec/bundler/runtime/platform_spec.rb @@ -457,6 +457,8 @@ bundle "install" + platform = "MSWIN" if arch =~ /mswin/ + expect(the_bundle).to include_gems "platform_specific 1.0 #{platform}" end end