diff options
author | ThibG <thib@sitedethib.com> | 2017-10-03 23:21:19 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-03 23:21:19 +0200 |
commit | dfaa219f8820224d37cd060d253a507111c63460 (patch) | |
tree | d84960bb81f1203489ed1a7cb3f1d919b64d05d7 /spec/controllers | |
parent | e6543d5fc4d4f6ec7020d104e4d2360ee9bd7679 (diff) |
Fix HTTP responses for salmon and ActivityPub inbox processing (#5200)
* Return sensible HTTP status for ActivityPub inbox processing * Return sensible HTTP status for salmon slap processing * Return additional information to debug signature verification failures
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/api/salmon_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/api/salmon_controller_spec.rb b/spec/controllers/api/salmon_controller_spec.rb index 3e4686200..323d85b61 100644 --- a/spec/controllers/api/salmon_controller_spec.rb +++ b/spec/controllers/api/salmon_controller_spec.rb @@ -46,8 +46,8 @@ RSpec.describe Api::SalmonController, type: :controller do post :update, params: { id: account.id } end - it 'returns http success' do - expect(response).to have_http_status(202) + it 'returns http client error' do + expect(response).to have_http_status(400) end end end |