summaryrefslogtreecommitdiff
path: root/test/integration/api
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2017-08-15 11:31:04 -0700
committerelijah <elijah@riseup.net>2017-08-15 11:31:04 -0700
commitbc9dc8e62a01b9f961026e7d33be4d9f92763920 (patch)
tree19daae2d11e7e541cee2f3891d6f0b43c3294c77 /test/integration/api
parent76c110035323a9082ba89459d1ef2ef598159509 (diff)
use i18n for login test
Diffstat (limited to 'test/integration/api')
-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