summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColby Swandale <me@colby.fyi>2018-12-29 17:12:04 +1100
committerColby Swandale <me@colby.fyi>2018-12-29 17:12:04 +1100
commita2e9d1ba187d311927b56471bcbe70271b3c49f7 (patch)
treef9becb6d68f1b19ace22b24871b2dde00ef2a25f
parent3472aa9750252ed83dc32c348c2bd3082dd00d4e (diff)
downloadbundler-a2e9d1ba187d311927b56471bcbe70271b3c49f7.tar.gz
ignore RubyGems warnings about deprecated methods in version.rb
-rw-r--r--spec/quality_spec.rb6
1 files changed, 5 insertions, 1 deletions
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