diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-10-14 15:20:51 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-10-14 07:55:36 +0000 |
| commit | d0b89cab4ed7661cc0acea28ec04793f19ce3953 (patch) | |
| tree | 9d1ea957e5f50650b8a62a97a9e7bc86b880b3a6 | |
| parent | f142d1b598d54b71a85f5ab952a96f9af14cf434 (diff) | |
[rubygems/rubygems] Added example for legacy windows platform
https://github.com/rubygems/rubygems/commit/90130c0648
| -rw-r--r-- | spec/bundler/other/major_deprecation_spec.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/spec/bundler/other/major_deprecation_spec.rb b/spec/bundler/other/major_deprecation_spec.rb index f61dc1bc88..d701c4008d 100644 --- a/spec/bundler/other/major_deprecation_spec.rb +++ b/spec/bundler/other/major_deprecation_spec.rb @@ -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'" |
