diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-10-13 20:32:10 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-10-14 15:16:27 +0300 |
commit | 04593581037bca7a7c3b00c719404e610c158cc1 (patch) | |
tree | bbdf004bd6d7ae543ffe7fb22be5259762150227 /spec/requests/api/system_hooks_spec.rb | |
parent | fbeaa7518d8cf86ad62e94e9bc86ffe63715dffd (diff) |
API: Fix Sytem hooks delete behavior
Diffstat (limited to 'spec/requests/api/system_hooks_spec.rb')
-rw-r--r-- | spec/requests/api/system_hooks_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/requests/api/system_hooks_spec.rb b/spec/requests/api/system_hooks_spec.rb index 1ce2658569e..f8a1aed5441 100644 --- a/spec/requests/api/system_hooks_spec.rb +++ b/spec/requests/api/system_hooks_spec.rb @@ -73,9 +73,10 @@ describe API::API, api: true do end.to change { SystemHook.count }.by(-1) end - it "returns success if hook id not found" do - delete api("/hooks/12345", admin) - expect(response).to have_http_status(200) + it 'returns 404 if the system hook does not exist' do + delete api('/hooks/12345', admin) + + expect(response).to have_http_status(404) end end end |