[rubygems/rubygems] Added example for legacy windows platform

https://github.com/rubygems/rubygems/commit/90130c0648
This commit is contained in:
Hiroshi SHIBATA 2025-10-14 15:20:51 +09:00 committed by git
parent f142d1b598
commit d0b89cab4e

View File

@ -573,6 +573,38 @@ RSpec.describe "major deprecations" do
end
end
context "bundle install with a lockfile including X64_MINGW_LEGACY platform" do
before do
gemfile <<~G
source "https://gem.repo1"
gem "rake"
G
lockfile <<~L
GEM
remote: https://rubygems.org/
specs:
rake (10.3.2)
PLATFORMS
ruby
x64-mingw32
DEPENDENCIES
rake
BUNDLED WITH
#{Bundler::VERSION}
L
end
it "raises a helpful error" do
bundle "install", raise_on_error: false
expect(err).to include("Found x64-mingw32 in lockfile, which is no longer supported as of Bundler 4.0.")
end
end
context "when Bundler.setup is run in a ruby script" do
before do
create_file "gems.rb", "source 'https://gem.repo1'"