Sha256: 27abda6d421c7ff6a7c77735f8253368b1802e0c0ab2a3ac714e1d7636a7d30c
Contents?: true
Size: 464 Bytes
Versions: 2
Compression:
Stored size: 464 Bytes
Contents
require 'spec_helper' describe 'the reactions when encountering error status', type: :rack do context 'when encountering a server error' do let(:json) { { error_code: 507 } } before do json_string = JSON.generate(json) post '/error', json_string, {} end it 'delegates the error response without failing' do expect(last_response.status).to eq json[:error_code] expect(last_response.body).to be_present end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cp-sparrow-0.0.16 | spec/integration/rack/error_spec.rb |
cp-sparrow-0.0.15 | spec/integration/rack/error_spec.rb |