Sha256: 5ed4eae4651d4a9f582e9718fe76088eb095685252bbc8188876bb9d46a1d08d
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
describe 'error handling' do include_context :site_hub include_context :async before do WebMock.enable! end context 'connectivity error' do def app @app ||= Async::Middleware.new(rack_application) ensure WebMock.disable! end it 'shows the error page when an exception occurs' do get('/endpoint') expect(last_response.status).to eq(500) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sitehub-0.4.3 | spec/sitehub/error_handling_spec.rb |