Sha256: f2d67ccd6fa3091f3a203a0155e0555e8d41b02d57434ca88bd8f13bd024ce8f
Contents?: true
Size: 407 Bytes
Versions: 9
Compression:
Stored size: 407 Bytes
Contents
require 'spec_helper' require 'faraday' describe 'application error response' do include_context 'with a generated app' it 'returns a json formatted message' do request = Faraday.get "http://localhost:#{app_port}/bogus" response = JSON.parse request.body expect(request.status).to eq 404 expect(response['code']).to eq 404 expect(response['message']).to eq ['Not Found'] end end
Version data entries
9 entries across 9 versions & 1 rubygems