From 73408c062990bac9e80d61e410de25b93d63ffb9 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Thu, 28 Jul 2016 15:01:20 -0500 Subject: Only expect no gemspec warnings on 2.4+ --- spec/quality_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'spec/quality_spec.rb') 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") -- cgit v1.2.3