summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2024-09-12 13:40:59 +0200
committergit <[email protected]>2024-11-08 12:06:32 +0000
commit10d694a1ffdcdaae67a693bb68c4bd658ec2d157 (patch)
tree5e10e80aa0f7cdc2f91fa09c2da3e1674a8eaff8 /spec
parent7cb0bb43b9e465b8f2b36d143c2df44641d2f395 (diff)
[rubygems/rubygems] Warn on insecure materialization
https://github.com/rubygems/rubygems/commit/bc2537de71
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/install/gemfile/specific_platform_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/bundler/install/gemfile/specific_platform_spec.rb b/spec/bundler/install/gemfile/specific_platform_spec.rb
index 4b20223b5a..dc9bbd1144 100644
--- a/spec/bundler/install/gemfile/specific_platform_spec.rb
+++ b/spec/bundler/install/gemfile/specific_platform_spec.rb
@@ -58,7 +58,7 @@ RSpec.describe "bundle install with specific platforms" do
L
bundle "install --verbose"
-
+ expect(err).to include("The following platform specific gems are getting installed, yet the lockfile includes only their generic ruby version")
expect(out).to include("Installing sass-embedded 1.72.0 (x86_64-darwin-15)")
expect(the_bundle).to include_gem("sass-embedded 1.72.0 x86_64-darwin-15")
@@ -130,6 +130,7 @@ RSpec.describe "bundle install with specific platforms" do
L
bundle "update"
+ expect(err).to include("The following platform specific gems are getting installed, yet the lockfile includes only their generic ruby version")
checksums.checksum gem_repo2, "google-protobuf", "3.0.0.alpha.5.0.5.1"
@@ -238,6 +239,7 @@ RSpec.describe "bundle install with specific platforms" do
L
bundle "install --verbose"
+ expect(err).to include("The following platform specific gems are getting installed, yet the lockfile includes only their generic ruby version")
expect(out).to include("Installing libv8 8.4.255.0 (universal-darwin)")
bundle "add mini_racer --verbose"
@@ -275,6 +277,7 @@ RSpec.describe "bundle install with specific platforms" do
L
bundle "install --verbose", artifice: "compact_index_precompiled_before"
+ expect(err).to include("The following platform specific gems are getting installed, yet the lockfile includes only their generic ruby version")
expect(out).to include("Installing grpc 1.50.0 (universal-darwin)")
end
end