From 49d3e9df74685fe17a2abbbabdd17014f2371065 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 10 Feb 2016 10:56:57 -0800 Subject: allow user accounts to be re-enabled, and for associated identities to also get re-enabled. --- test/support/api_integration_test.rb | 2 +- test/support/browser_integration_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test/support') diff --git a/test/support/api_integration_test.rb b/test/support/api_integration_test.rb index 4077920..3b3481b 100644 --- a/test/support/api_integration_test.rb +++ b/test/support/api_integration_test.rb @@ -21,7 +21,7 @@ class ApiIntegrationTest < ActionDispatch::IntegrationTest teardown do if @user && @user.persisted? - Identity.destroy_all_for @user + @user.destroy_identities @user.reload.destroy end if @token && @token.persisted? diff --git a/test/support/browser_integration_test.rb b/test/support/browser_integration_test.rb index 950a395..1deb8fa 100644 --- a/test/support/browser_integration_test.rb +++ b/test/support/browser_integration_test.rb @@ -86,7 +86,7 @@ class BrowserIntegrationTest < ActionDispatch::IntegrationTest teardown do if @user && @user.reload - Identity.destroy_all_for @user + @user.destroy_identities @user.destroy end end -- cgit v1.2.3