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

Version Path
gris-0.5.2 spec/integration/application_error_response_spec.rb
gris-0.5.1 spec/integration/application_error_response_spec.rb
gris-0.5.0 spec/integration/application_error_response_spec.rb
gris-0.4.9 spec/integration/application_error_response_spec.rb
gris-0.4.8 spec/integration/application_error_response_spec.rb
gris-0.4.7 spec/integration/application_error_response_spec.rb
gris-0.4.6 spec/integration/application_error_response_spec.rb
gris-0.4.5 spec/integration/application_error_response_spec.rb
gris-0.4.4 spec/integration/application_error_response_spec.rb