Fix failing AP test

This commit is contained in:
Carlos Antonio da Silva 2013-05-01 10:48:01 -03:00
parent 3064d642f6
commit 630d2e4e38
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class JsonParamsParsingTest < ActionDispatch::IntegrationTest
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