From 1e672227a23afbb9f319a0aefa0b0ca3495fa1c6 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 21 Nov 2016 16:14:38 +0100 Subject: bugfix: handle couch 404s our special error handler for json requests would turn all exceptions into 500s - removed it. now the rescue_responses can do their thing again. --- test/integration/api/update_account_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/integration/api') diff --git a/test/integration/api/update_account_test.rb b/test/integration/api/update_account_test.rb index 108f05d..f083dbc 100644 --- a/test/integration/api/update_account_test.rb +++ b/test/integration/api/update_account_test.rb @@ -54,4 +54,12 @@ class UpdateAccountTest < SrpTest # does not change login if no password_verifier is present assert_equal original_login, @user.reload.login end + + test "destroy account" do + authenticate + url = api_url("users/#{@user.id}.json?identities=destroy") + delete url, nil, auth_headers + assert last_response.successful? + end + end -- cgit v1.2.3