summaryrefslogtreecommitdiff
path: root/test/integration/api/login_test.rb
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2017-09-08 09:16:53 +0200
committerAzul <azul@riseup.net>2017-09-08 09:16:53 +0200
commit35b710c968d6e71e4d4210dbc2e00abc6f14f513 (patch)
treeef23e50a234a4a84c8be43b3e91e3ab00fb2a995 /test/integration/api/login_test.rb
parentc09411e976c3a0fcf2b9c83e16ae06385056fa50 (diff)
parentd3bf6146d167755afa33fcf2580e46f83064f005 (diff)
Merge remote-tracking branch 'origin/master' into master
Diffstat (limited to 'test/integration/api/login_test.rb')
-rw-r--r--test/integration/api/login_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/api/login_test.rb b/test/integration/api/login_test.rb
index 22047bc..97e0ff6 100644
--- a/test/integration/api/login_test.rb
+++ b/test/integration/api/login_test.rb
@@ -22,7 +22,7 @@ class LoginTest < SrpTest
test "wrong password login attempt" do
authenticate password: "wrong password"
- assert_json_error "base" => "Not a valid username/password combination"
+ assert_json_error "base" => I18n.t(:invalid_user_pass)
assert !last_response.successful?
assert_nil server_auth["M2"]
end
@@ -31,7 +31,7 @@ class LoginTest < SrpTest
assert_raises RECORD_NOT_FOUND do
authenticate login: "wrong login"
end
- assert_json_error "base" => "Not a valid username/password combination"
+ assert_json_error "base" => I18n.t(:invalid_user_pass)
assert !last_response.successful?
assert_nil server_auth
end