mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix failing tests for #19474
This commit is contained in:
parent
0b81b3094a
commit
550c1f0950
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ module ShowExceptions
|
|||
get "/", headers: { 'HTTP_ACCEPT' => 'application/json' }
|
||||
assert_response :internal_server_error
|
||||
assert_equal 'application/json', response.content_type.to_s
|
||||
assert_equal({ :status => '500', :error => 'Internal Server Error' }.to_json, response.body)
|
||||
assert_equal({ :status => 500, :error => 'Internal Server Error' }.to_json, response.body)
|
||||
end
|
||||
|
||||
def test_render_xml_exception
|
||||
|
@ -83,7 +83,7 @@ module ShowExceptions
|
|||
get "/", headers: { 'HTTP_ACCEPT' => 'application/xml' }
|
||||
assert_response :internal_server_error
|
||||
assert_equal 'application/xml', response.content_type.to_s
|
||||
assert_equal({ :status => '500', :error => 'Internal Server Error' }.to_xml, response.body)
|
||||
assert_equal({ :status => 500, :error => 'Internal Server Error' }.to_xml, response.body)
|
||||
end
|
||||
|
||||
def test_render_fallback_exception
|
||||
|
|
Loading…
Reference in a new issue