diff options
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/error_handling_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/error_handling_test.rb b/test/functional/error_handling_test.rb index 04ea722..47e44ce 100644 --- a/test/functional/error_handling_test.rb +++ b/test/functional/error_handling_test.rb @@ -10,6 +10,8 @@ class ErrorHandlingTest < ActionController::TestCase def test_json_error get :index, format: :json assert_equal 'application/json', @response.content_type + assert json = JSON.parse(@response.body) + assert_equal ['error'], json.keys end def test_html_error_reraises |