diff options
author | Azul <azul@leap.se> | 2013-09-18 10:26:23 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-09-18 10:27:19 +0200 |
commit | 3ca376a4070428c862c9db48cba25c3d307955ea (patch) | |
tree | cff922632b3ad5983ff07d1eb77648b6f5a8b84f /users/test/integration/browser | |
parent | 22e6f781caec701a4d041e0ac183df4c955e89c2 (diff) |
user.account shortcut to Account.new(user)
Diffstat (limited to 'users/test/integration/browser')
-rw-r--r-- | users/test/integration/browser/account_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/users/test/integration/browser/account_test.rb b/users/test/integration/browser/account_test.rb index a5ec2c5..06f2401 100644 --- a/users/test/integration/browser/account_test.rb +++ b/users/test/integration/browser/account_test.rb @@ -13,9 +13,7 @@ class AccountTest < BrowserIntegrationTest assert page.has_content?("Sign Up") assert_equal '/', current_path assert user = User.find_by_login(username) - assert id = user.identity - id.destroy - user.destroy + user.account.destroy end test "successful login" do |