Sha256: 57c44beea07c006b4adaa83de40902bcddc474f8247583450878f226756b45b8
Contents?: true
Size: 409 Bytes
Versions: 11
Compression:
Stored size: 409 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['status']).to eq 404 expect(response['message']).to eq ['Not Found'] end end
Version data entries
11 entries across 11 versions & 1 rubygems