From a2e9d1ba187d311927b56471bcbe70271b3c49f7 Mon Sep 17 00:00:00 2001 From: Colby Swandale Date: Sat, 29 Dec 2018 17:12:04 +1100 Subject: ignore RubyGems warnings about deprecated methods in version.rb --- 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 e85d0bfa97..64590befdf 100644 --- a/spec/quality_spec.rb +++ b/spec/quality_spec.rb @@ -260,7 +260,11 @@ RSpec.describe "The library itself" do end end - expect(last_command.stdboth.split("\n")).to be_well_formed + warnings = last_command.stdboth.split("\n") + # ignore warnings around deprecated Object#=~ method in RubyGems + warnings.reject! {|w| w =~ %r{rubygems\/version.rb.*deprecated\ Object#=~} } + + expect(warnings).to be_well_formed end end end -- cgit v1.2.1