summaryrefslogtreecommitdiff
path: root/users/test/integration/api/srp_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'users/test/integration/api/srp_test.rb')
-rw-r--r--users/test/integration/api/srp_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/users/test/integration/api/srp_test.rb b/users/test/integration/api/srp_test.rb
index b291269..bb24f5f 100644
--- a/users/test/integration/api/srp_test.rb
+++ b/users/test/integration/api/srp_test.rb
@@ -52,6 +52,11 @@ class SrpTest < RackTest
@server_auth = srp(params).authenticate(self)
end
+ def logout
+ delete "http://api.lvh.me:3000/1/logout.json",
+ format: :json
+ end
+
def cleanup_user(login = nil)
login ||= @user.login
Identity.by_address.key(login + '@' + APP_CONFIG[:domain]).each do |identity|