aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2015-03-23 13:14:47 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2015-03-23 13:15:59 +0000
commit550c1f095028d480e486388b43b880b8f01c48c5 (patch)
tree76580df830310b0eeeee7986c7b618194f2557b2 /actionpack/test/controller
parent0b81b3094a1176659664e52715f9621e431fabd0 (diff)
downloadrails-550c1f095028d480e486388b43b880b8f01c48c5.tar.gz
rails-550c1f095028d480e486388b43b880b8f01c48c5.tar.bz2
rails-550c1f095028d480e486388b43b880b8f01c48c5.zip
Fix failing tests for #19474
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/show_exceptions_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/show_exceptions_test.rb b/actionpack/test/controller/show_exceptions_test.rb
index fba5ebba15..786dc15444 100644
--- a/actionpack/test/controller/show_exceptions_test.rb
+++ b/actionpack/test/controller/show_exceptions_test.rb
@@ -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