Sha256: a43526c6c8ba6b2282841269e5eccfcdc645039f07bf01b362cdfcdcebe4dc0f
Contents?: true
Size: 453 Bytes
Versions: 2
Compression:
Stored size: 453 Bytes
Contents
require 'test_helper' class ExeptionsAppTest < ActionDispatch::IntegrationTest test 'returns 404 for unknown format for pages that do not exist' do get '/does_not_exist', headers: { 'Accept' => '*/*' } assert_equal 404, response.status end test 'returns 302 for unprocessable_entity' do get '/rambulance/unprocessable_entity', headers: { 'Accept' => '*/*' } assert_redirected_to '/rambulance/unprocessable_content' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rambulance-3.3.0 | test/exceptions_app_test.rb |
rambulance-3.2.0 | test/exceptions_app_test.rb |