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

Fixed the rubocop warnings

This commit is contained in:
Hiroshi SHIBATA 2019-09-18 15:05:38 +09:00
parent effacde2c0
commit 2da8574930
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") expect(out).to include("Installing activesupport")
err.gsub! %r{(.*lib/sinatra/base\.rb:\d+: warning: constant ::Fixnum is deprecated$)}, "" err.gsub! %r{(.*lib/sinatra/base\.rb:\d+: warning: constant ::Fixnum is deprecated$)}, ""
err_lines = err.split("\n") err_lines = err.split("\n")
err_lines.reject!{|line| line =~ /\.rb:\d+: warning: /} err_lines.reject!{|line| line =~ /\.rb:\d+: warning: / }
expect(err_lines).to be_empty expect(err_lines).to be_empty
expect(exitstatus).to be_zero if exitstatus expect(exitstatus).to be_zero if exitstatus
end end