From 7b421de698872258a7ea4288be9ce4f9b5287258 Mon Sep 17 00:00:00 2001 From: Dushan Despotovic Date: Thu, 12 May 2022 12:37:36 +0100 Subject: [PATCH] make spec file use translations instead of content --- spec/helpers/interruption_screen_helper_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/helpers/interruption_screen_helper_spec.rb b/spec/helpers/interruption_screen_helper_spec.rb index 026bfeb70..13633a0c3 100644 --- a/spec/helpers/interruption_screen_helper_spec.rb +++ b/spec/helpers/interruption_screen_helper_spec.rb @@ -36,7 +36,7 @@ RSpec.describe InterruptionScreenHelper do ], } expect(display_informative_text(informative_text, case_log)) - .to eq("

You told us the lead tenant’s working situation is: full-time – 30 hours or more.

The household income you have entered is £750.00 every week.

") + .to eq(I18n.t("soft_validations.net_income.hint_text", ecstat1: case_log.form.get_question("ecstat1", case_log).answer_label(case_log).downcase, earnings: case_log.form.get_question("earnings", case_log).answer_label(case_log))) end end @@ -53,7 +53,7 @@ RSpec.describe InterruptionScreenHelper do ], } expect(display_informative_text(informative_text, case_log)) - .to eq("This is based on the tenant’s work situation: full-time – 30 hours or more") + .to eq(I18n.t("test.one_argument", ecstat1: case_log.form.get_question("ecstat1", case_log).answer_label(case_log).downcase)) end end @@ -75,7 +75,7 @@ RSpec.describe InterruptionScreenHelper do ], } expect(display_informative_text(informative_text, case_log)) - .to eq("This is based on the tenant’s work situation: full-time – 30 hours or more") + .to eq(I18n.t("test.one_argument", ecstat1: case_log.form.get_question("ecstat1", case_log).answer_label(case_log).downcase)) end end