summaryrefslogtreecommitdiff
path: root/users/test/integration/browser/account_test.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-08-21 09:49:26 +0200
committerAzul <azul@leap.se>2013-08-21 09:49:26 +0200
commit75db45671d432a0d81805ad50c6cc9f8f7eff7a7 (patch)
tree48504f5dc9dae4953aab37b8a142dccd8b895020 /users/test/integration/browser/account_test.rb
parent115d96398246dcda23a51728dfafe1ea3c8ede88 (diff)
use the same login validations on sessions and users
The session ones were outdated so valid usernames could not login if they contained a '.' Refactored so both models use the same module for this validation to ensure consistency.
Diffstat (limited to 'users/test/integration/browser/account_test.rb')
-rw-r--r--users/test/integration/browser/account_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/test/integration/browser/account_test.rb b/users/test/integration/browser/account_test.rb
index c65c491..b412980 100644
--- a/users/test/integration/browser/account_test.rb
+++ b/users/test/integration/browser/account_test.rb
@@ -28,8 +28,8 @@ class AccountTest < BrowserIntegrationTest
fill_in 'Password', with: "password"
inject_malicious_js
click_on 'Log In'
- assert !page.has_content?("Welcome")
assert page.has_content?("Invalid random key")
+ assert page.has_no_content?("Welcome")
end
def inject_malicious_js