diff options
Diffstat (limited to 'spec/quality_spec.rb')
-rw-r--r-- | spec/quality_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb index 778bfe50..da495a8c 100644 --- a/spec/quality_spec.rb +++ b/spec/quality_spec.rb @@ -186,7 +186,11 @@ describe "The library itself" do Dir.chdir(root) do begin gem_command! :build, "bundler.gemspec" - expect(err).to be_empty, "bundler should build as a gem without warnings, but\n#{err}" + if Bundler.rubygems.provides?(">= 2.4") + # older rubygems have weird warnings, and we won't actually be using them + # to build the gem for releases anyways + expect(err).to be_empty, "bundler should build as a gem without warnings, but\n#{err}" + end ensure # clean up the .gem generated FileUtils.rm("bundler-#{Bundler::VERSION}.gem") |