summaryrefslogtreecommitdiff
path: root/users/test/integration/api
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-11-04 22:14:13 +0100
committerAzul <azul@leap.se>2012-11-04 22:14:13 +0100
commitef90c45998b33ba8606c3786875e21496ace4686 (patch)
treef6705a79c03cad908d6ccc2131582a1bb2de3594 /users/test/integration/api
parentc8f1eb55be6743fcc476d6a8f81e1244e455154a (diff)
fixed functional tests
Diffstat (limited to 'users/test/integration/api')
-rw-r--r--users/test/integration/api/account_flow_test.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/users/test/integration/api/account_flow_test.rb b/users/test/integration/api/account_flow_test.rb
index 69e0599..dc475b5 100644
--- a/users/test/integration/api/account_flow_test.rb
+++ b/users/test/integration/api/account_flow_test.rb
@@ -1,6 +1,11 @@
require 'test_helper'
class AccountFlowTest < ActionDispatch::IntegrationTest
+ include Warden::Test::Helpers
+
+ def teardown
+ Warden.test_reset!
+ end
# this test wraps the api and implements the interface the ruby-srp client.
def handshake(login, aa)
@@ -52,7 +57,7 @@ class AccountFlowTest < ActionDispatch::IntegrationTest
test "signup and wrong password login attempt" do
srp = SRP::Client.new(@login, "wrong password")
server_auth = srp.authenticate(self)
- assert_equal ["wrong password"], server_auth["errors"]['password']
+ assert_equal "Could not log in", server_auth["errors"]['password']
assert_nil server_auth["M2"]
end