Fix failing AP test
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user