mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-03-25 08:55:47 +00:00
AutoFix RuboCop Layout/SpaceBeforeComma
This commit is contained in:
parent
f5a1cdb6f9
commit
0ac850435e
2 changed files with 2 additions and 8 deletions
|
|
@ -29,12 +29,6 @@ Gemspec/RequiredRubyVersion:
|
|||
Exclude:
|
||||
- 'grape_logging.gemspec'
|
||||
|
||||
# Offense count: 2
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Layout/SpaceBeforeComma:
|
||||
Exclude:
|
||||
- 'spec/lib/grape_logging/middleware/request_logger_spec.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ require 'rack'
|
|||
|
||||
describe GrapeLogging::Middleware::RequestLogger do
|
||||
let(:subject) { request.send(request_method, path) }
|
||||
let(:app) { proc { [status, {} , ['response body']] } }
|
||||
let(:app) { proc { [status, {}, ['response body']] } }
|
||||
let(:stack) { described_class.new app, options }
|
||||
let(:request) { Rack::MockRequest.new(stack) }
|
||||
let(:options) { {include: [], logger: logger} }
|
||||
|
|
@ -49,7 +49,7 @@ describe GrapeLogging::Middleware::RequestLogger do
|
|||
end
|
||||
|
||||
context 'with a nil response' do
|
||||
let(:app) { proc { [500, {} , nil] } }
|
||||
let(:app) { proc { [500, {}, nil] } }
|
||||
it 'should log "fail" instead of a status' do
|
||||
expect(Rack::MockResponse).to receive(:new) { nil }
|
||||
expect(logger).to receive('info') do |arguments|
|
||||
|
|
|
|||
Loading…
Reference in a new issue