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

Version Path
gris-0.6.5 spec/integration/application_error_response_spec.rb
gris-0.6.2 spec/integration/application_error_response_spec.rb
gris-0.6.1 spec/integration/application_error_response_spec.rb
gris-0.6.0 spec/integration/application_error_response_spec.rb
gris-0.5.9 spec/integration/application_error_response_spec.rb
gris-0.5.8 spec/integration/application_error_response_spec.rb
gris-0.5.7 spec/integration/application_error_response_spec.rb
gris-0.5.6 spec/integration/application_error_response_spec.rb
gris-0.5.5 spec/integration/application_error_response_spec.rb
gris-0.5.4 spec/integration/application_error_response_spec.rb
gris-0.5.3 spec/integration/application_error_response_spec.rb