mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[rubygems/rubygems] Restore an accidentally changes of cache_spec.rb
https://github.com/rubygems/rubygems/commit/06508374aa
This commit is contained in:
parent
fdc37df3d3
commit
d99a4295a8
@ -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|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user