summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-07-24 12:30:59 +0200
committerAzul <azul@leap.se>2013-07-24 12:30:59 +0200
commitb1065710102193ba11e2a18b5f6506ba1d5b31f9 (patch)
tree118f97eaa011df7e93f32dc5340e9532fa06daa9 /users
parent370be6caa8a366774fba15d09fb03ee4d923b861 (diff)
also destroy the identity for a test user during teardown
Diffstat (limited to 'users')
-rw-r--r--users/test/integration/api/account_flow_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/users/test/integration/api/account_flow_test.rb b/users/test/integration/api/account_flow_test.rb
index c09dcb6..ec7753c 100644
--- a/users/test/integration/api/account_flow_test.rb
+++ b/users/test/integration/api/account_flow_test.rb
@@ -18,7 +18,10 @@ class AccountFlowTest < RackTest
end
teardown do
- @user.destroy if @user
+ if @user
+ @user.identity.destroy
+ @user.destroy
+ end
Warden.test_reset!
end