test/exceptions_app_test.rb in rambulance-3.1.0 vs test/exceptions_app_test.rb in rambulance-3.2.0
- old
+ new
@@ -4,6 +4,12 @@
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