1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Ignore the all of warnings with inline_spec.rb of bundler examples.

This commit is contained in:
Hiroshi SHIBATA 2019-09-01 08:56:00 +09:00
parent a060629e66
commit 1756ec2065
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -90,7 +90,7 @@ RSpec.describe "bundler/inline#gemfile" do
expect(out).to include("Installing activesupport")
err.gsub! %r{(.*lib/sinatra/base\.rb:\d+: warning: constant ::Fixnum is deprecated$)}, ""
err_lines = err.split("\n")
err_lines.reject!{|line| line =~ /\.rb:\d+: warning: The last/}
err_lines.reject!{|line| line =~ /\.rb:\d+: warning: /}
expect(err_lines).to be_empty
expect(exitstatus).to be_zero if exitstatus
end