diff options
author | jessib <jessib@riseup.net> | 2013-09-03 10:48:13 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-09-03 10:48:13 -0700 |
commit | 07d0f6fe1d80cb730bd12a03a107c18d18779acc (patch) | |
tree | 8583a31661ba5032a9cd6ffd6b74273a6c862ab0 /users/test/integration/browser/account_test.rb | |
parent | f3e17149116f6a3aeb87f8a6d0ecf29e8e33ad93 (diff) | |
parent | 29b306a4d49d395e5753e2e85f8fa1f25d18410c (diff) |
Merge pull request #73 from azul/bugfix/3623-teardown-test-data-properly
Bugfix/3623 teardown test data properly
Diffstat (limited to 'users/test/integration/browser/account_test.rb')
-rw-r--r-- | users/test/integration/browser/account_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/users/test/integration/browser/account_test.rb b/users/test/integration/browser/account_test.rb index f3a78ed..8b214a4 100644 --- a/users/test/integration/browser/account_test.rb +++ b/users/test/integration/browser/account_test.rb @@ -12,6 +12,10 @@ class AccountTest < BrowserIntegrationTest click_on 'Logout' 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 end # trying to seed an invalid A for srp login @@ -24,6 +28,7 @@ class AccountTest < BrowserIntegrationTest click_on 'Log In' assert page.has_content?("Invalid random key") assert page.has_no_content?("Welcome") + user.destroy end test "reports internal server errors" do |