summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-10-28 11:08:31 +0100
committerAzul <azul@leap.se>2013-10-28 11:08:31 +0100
commit1ef3e9df271934b983ff5afe60c2dcf34c090a98 (patch)
treedeab84ac7f9f8d24df12a8559c1d98569e8cdacb /users
parent315a7c9aa3d6cc6cde51a67b6dcc91aea085f518 (diff)
no need to create a user for testing failed login attempt
Diffstat (limited to 'users')
-rw-r--r--users/test/integration/browser/account_test.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/users/test/integration/browser/account_test.rb b/users/test/integration/browser/account_test.rb
index 243ccfb..8e03856 100644
--- a/users/test/integration/browser/account_test.rb
+++ b/users/test/integration/browser/account_test.rb
@@ -28,17 +28,14 @@ class AccountTest < BrowserIntegrationTest
end
test "failed login" do
- username, password = submit_signup
- click_on 'Logout'
+ visit '/'
click_on 'Log In'
- fill_in 'Username', with: username
+ fill_in 'Username', with: "username"
fill_in 'Password', with: "wrong password"
click_on 'Log In'
assert page.has_selector? 'input.btn-primary.disabled'
assert page.has_content? I18n.t(:invalid_user_pass)
- assert page.has_no_content?("Welcome #{username}")
assert page.has_no_selector? 'input.btn-primary.disabled'
- User.find_by_login(username).account.destroy
end
test "change password" do