summaryrefslogtreecommitdiff
path: root/users/test/integration/api/account_flow_test.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-17 10:36:13 +0100
committerAzul <azul@leap.se>2012-12-17 10:36:13 +0100
commitd64ab283b7bce0d296bb743f030c5361af663456 (patch)
treed3979c63f555e7076799f9fd0277c72ca5a8d01e /users/test/integration/api/account_flow_test.rb
parent842845abffda2cf9abe38bac48d5c4b7cf3714b5 (diff)
parentff9d29df260b29a1c20441e25e2fc3fdf9ee1fb3 (diff)
Merge branch 'master' into develop
Diffstat (limited to 'users/test/integration/api/account_flow_test.rb')
-rw-r--r--users/test/integration/api/account_flow_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/users/test/integration/api/account_flow_test.rb b/users/test/integration/api/account_flow_test.rb
index e425c35..7636f2b 100644
--- a/users/test/integration/api/account_flow_test.rb
+++ b/users/test/integration/api/account_flow_test.rb
@@ -62,6 +62,14 @@ class AccountFlowTest < ActiveSupport::TestCase
assert server_auth["M2"]
end
+ test "duplicate login does not break things" do
+ server_auth = @srp.authenticate(self)
+ server_auth = @srp.authenticate(self)
+ assert last_response.successful?
+ assert_nil server_auth["errors"]
+ assert server_auth["M2"]
+ end
+
test "signup and wrong password login attempt" do
srp = SRP::Client.new(@login, "wrong password")
server_auth = srp.authenticate(self)