summaryrefslogtreecommitdiff
path: root/users/test/unit/account_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'users/test/unit/account_test.rb')
-rw-r--r--users/test/unit/account_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/test/unit/account_test.rb b/users/test/unit/account_test.rb
index a8c6efd..4fb3c3d 100644
--- a/users/test/unit/account_test.rb
+++ b/users/test/unit/account_test.rb
@@ -2,6 +2,10 @@ require 'test_helper'
class AccountTest < ActiveSupport::TestCase
+ teardown do
+ Identity.destroy_all_disabled
+ end
+
test "create a new account" do
user = Account.create(FactoryGirl.attributes_for(:user))
assert user.valid?