fix specs

This commit is contained in:
aserafin 2017-09-10 20:47:23 +02:00
parent 7c3d7e2b70
commit d4cc3e2946

View file

@ -53,7 +53,7 @@ describe GrapeLogging::Middleware::RequestLogger do
it 'should log "fail" instead of a status' do it 'should log "fail" instead of a status' do
expect(Rack::MockResponse).to receive(:new) { nil } expect(Rack::MockResponse).to receive(:new) { nil }
expect(logger).to receive('info') do |arguments| expect(logger).to receive('info') do |arguments|
expect(arguments[:status]).to eq 'fail' expect(arguments[:status]).to eq 500
end end
subject subject
end end