[rubygems/rubygems] Restore an accidentally changes of cache_spec.rb

https://github.com/rubygems/rubygems/commit/06508374aa
This commit is contained in:
Hiroshi SHIBATA 2025-10-15 13:22:30 +09:00 committed by git
parent fdc37df3d3
commit d99a4295a8

View File

@ -207,6 +207,17 @@ RSpec.describe "bundle cache" do
expect(bundled_app("vendor/cache/myrack-1.0.0.gem")).to exist
end
it "prints an error when using legacy windows rubies" do
gemfile <<-D
source "https://gem.repo1"
gem 'myrack', :platforms => [:ruby_20, :x64_mingw_20]
D
bundle "cache --all-platforms", raise_on_error: false
expect(err).to include("removed")
expect(bundled_app("vendor/cache/myrack-1.0.0.gem")).not_to exist
end
it "does not attempt to install gems in without groups" do
build_repo4 do
build_gem "uninstallable", "2.0" do |s|