Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix failing AP test

  • Loading branch information...
commit 1296adb90b3ffd478d988186bc82a96757b219db 1 parent fc65d31
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/test/dispatch/request/json_params_parsing_test.rb
View
2  actionpack/test/dispatch/request/json_params_parsing_test.rb
@@ -50,7 +50,7 @@ def teardown
output = StringIO.new
json = "[\"person]\": {\"name\": \"David\"}}"
post "/parse", json, {'CONTENT_TYPE' => 'application/json', 'action_dispatch.show_exceptions' => true, 'action_dispatch.logger' => ActiveSupport::Logger.new(output)}
- assert_response :error
+ assert_response :bad_request
output.rewind && err = output.read
assert err =~ /Error occurred while parsing request parameters/
end
Please sign in to comment.
Something went wrong with that request. Please try again.