diff options
Diffstat (limited to 'spec/quality_spec.rb')
-rw-r--r-- | spec/quality_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb index f9c815aee1..219a6bc85d 100644 --- a/spec/quality_spec.rb +++ b/spec/quality_spec.rb @@ -225,9 +225,9 @@ RSpec.describe "The library itself" do end # there's no way around this warning - last_command.stderr.sub!(/^YAML safe loading.*/, "") + err.sub!(/^YAML safe loading.*/, "") - expect(last_command.stderr).to be_empty, "bundler should build as a gem without warnings, but\n#{err}" + expect(err).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") |