diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-02-22 11:07:39 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-02-25 21:09:10 +0100 |
commit | 289014761b510192863bfd9fc0fadac69819b456 (patch) | |
tree | 4ecb59b3a2db7275fc0d7b6a4cb1c5a0c2177fb8 /spec/quality_spec.rb | |
parent | 2f712047bcaf61f690fa1795a0057ba7850aae93 (diff) | |
download | bundler-289014761b510192863bfd9fc0fadac69819b456.tar.gz |
Remove more unnecessary rubygems version checks
Diffstat (limited to 'spec/quality_spec.rb')
-rw-r--r-- | spec/quality_spec.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb index cbeabb3b6e..8bdef33a79 100644 --- a/spec/quality_spec.rb +++ b/spec/quality_spec.rb @@ -226,14 +226,10 @@ RSpec.describe "The library itself" do gem_command! :build, gemspec end - if Bundler.rubygems.provides?(">= 2.4") - # there's no way around this warning - last_command.stderr.sub!(/^YAML safe loading.*/, "") + # there's no way around this warning + last_command.stderr.sub!(/^YAML safe loading.*/, "") - # older rubygems have weird warnings, and we won't actually be using them - # to build the gem for releases anyways - expect(last_command.stderr).to be_empty, "bundler should build as a gem without warnings, but\n#{err}" - end + expect(last_command.stderr).to be_empty, "bundler should build as a gem without warnings, but\n#{err}" ensure # clean up the .gem generated FileUtils.rm("bundler-#{Bundler::VERSION}.gem") |