1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Enforce bundler platform (and default gem) to keep invalid gemspec test compatible with ruby-trunk.

https://github.com/rubygems/rubygems/commit/a77061d4e9
This commit is contained in:
Josef Šimánek 2021-10-26 01:20:12 +02:00 committed by Hiroshi SHIBATA
parent 9b7afd3cff
commit 71b370f6dd
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -197,10 +197,11 @@ RSpec.describe "real world edgecases", :realworld => true do
end
it "outputs a helpful error message when gems have invalid gemspecs" do
install_gemfile <<-G, :standalone => true, :raise_on_error => false
install_gemfile <<-G, :standalone => true, :raise_on_error => false, :env => { "BUNDLE_FORCE_RUBY_PLATFORM" => "1" }
source 'https://rubygems.org'
gem "resque-scheduler", "2.2.0"
gem "redis-namespace", "1.6.0" # for a consistent resolution including ruby 2.3.0
gem "ruby2_keywords", "0.0.5"
G
expect(err).to include("You have one or more invalid gemspecs that need to be fixed.")
expect(err).to include("resque-scheduler 2.2.0 has an invalid gemspec")