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

@ -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