From b746b067a246a3eadddcfe98ee343b13806e5b75 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Tue, 29 Mar 2022 13:30:46 +0100 Subject: [PATCH] Use translation in spec --- spec/features/auth/user_lockout_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/auth/user_lockout_spec.rb b/spec/features/auth/user_lockout_spec.rb index 64656756d..a426982ba 100644 --- a/spec/features/auth/user_lockout_spec.rb +++ b/spec/features/auth/user_lockout_spec.rb @@ -23,7 +23,7 @@ RSpec.describe "User Lockout" do fill_in("user[password]", with: user.password) click_button("Sign in") expect(page).to have_http_status(:unprocessable_entity) - expect(page).to have_content("Your account is locked.") + expect(page).to have_content(I18n.t("devise.failure.locked")) end end @@ -43,7 +43,7 @@ RSpec.describe "User Lockout" do fill_in("admin_user[password]", with: admin.password) click_button("Sign in") expect(page).to have_http_status(:unprocessable_entity) - expect(page).to have_content("Your account is locked.") + expect(page).to have_content(I18n.t("devise.failure.locked")) end end