summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorNgan Pham <ngan@users.noreply.github.com>2022-01-24 21:01:21 -0800
committergit <svn-admin@ruby-lang.org>2022-01-26 02:24:30 +0900
commit42ef3fcaef5e181d80393084b65af5a28a7b1a01 (patch)
treee3d9c4fdbd5dca2662a8e471410fc8de084c2d4d /spec/bundler
parentb07879e553a73200ec1d2c3f6b12127e22f965cd (diff)
[rubygems/rubygems] Use Gem::Platform.local instead of RUBY_PLATFORM
In certain places, we want to display the platform name with `Gem::Platform.local` instead of `RUBY_PLATFORM`. Fixes https://github.com/rubygems/rubygems/issues/5264 https://github.com/rubygems/rubygems/commit/bdd1848ae8
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/other/platform_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/bundler/other/platform_spec.rb b/spec/bundler/other/platform_spec.rb
index 5693d6bce6..bf38a05646 100644
--- a/spec/bundler/other/platform_spec.rb
+++ b/spec/bundler/other/platform_spec.rb
@@ -17,7 +17,7 @@ RSpec.describe "bundle platform" do
bundle "platform"
expect(out).to eq(<<-G.chomp)
-Your platform is: #{RUBY_PLATFORM}
+Your platform is: #{Gem::Platform.local}
Your app has gems that work on these platforms:
#{bundle_platform_platforms_string}
@@ -40,7 +40,7 @@ G
bundle "platform"
expect(out).to eq(<<-G.chomp)
-Your platform is: #{RUBY_PLATFORM}
+Your platform is: #{Gem::Platform.local}
Your app has gems that work on these platforms:
#{bundle_platform_platforms_string}
@@ -61,7 +61,7 @@ G
bundle "platform"
expect(out).to eq(<<-G.chomp)
-Your platform is: #{RUBY_PLATFORM}
+Your platform is: #{Gem::Platform.local}
Your app has gems that work on these platforms:
#{bundle_platform_platforms_string}
@@ -81,7 +81,7 @@ G
bundle "platform"
expect(out).to eq(<<-G.chomp)
-Your platform is: #{RUBY_PLATFORM}
+Your platform is: #{Gem::Platform.local}
Your app has gems that work on these platforms:
#{bundle_platform_platforms_string}