diff --git a/app/helpers/interuption_screen_helper.rb b/app/helpers/interuption_screen_helper.rb index 935209804..98dc060c7 100644 --- a/app/helpers/interuption_screen_helper.rb +++ b/app/helpers/interuption_screen_helper.rb @@ -11,6 +11,6 @@ module InteruptionScreenHelper rescue StandardError return "" end - "
#{translation}
".html_safe + "#{translation}".html_safe end end diff --git a/config/locales/en.yml b/config/locales/en.yml index a13929554..8d50df783 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -144,7 +144,7 @@ en: soft_validations: net_income: - hint_text: "You told us the main tenant's working situation is: %{ecstat1}You told us the main tenant's working situation is: %{ecstat1}
The household income you have entered is %{earnings}
" in_soft_min_range: message: "Net income is lower than expected based on the main tenant’s working situation. Are you sure this is correct?" in_soft_max_range: diff --git a/spec/helpers/interuption_screen_helper_spec.rb b/spec/helpers/interuption_screen_helper_spec.rb index df394c449..e6db8137a 100644 --- a/spec/helpers/interuption_screen_helper_spec.rb +++ b/spec/helpers/interuption_screen_helper_spec.rb @@ -25,7 +25,7 @@ RSpec.describe InteruptionScreenHelper do "argument" => %w[ecstat1 earnings], } expect(display_informative_text(informative_text, case_log)) - .to eq("You told us the main tenant's working situation is: Full-time – 30 hours or more
The household income you have entered is £750.00 every week
You told us the main tenant's working situation is: Full-time – 30 hours or more
The household income you have entered is £750.00 every week
") end end @@ -36,7 +36,7 @@ RSpec.describe InteruptionScreenHelper do "argument" => %w[ecstat1], } 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("This is based on the tenant’s work situation: Full-time – 30 hours or more") end end end @@ -48,7 +48,7 @@ RSpec.describe InteruptionScreenHelper do "argument" => %w[ecstat1 earnings], } 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("This is based on the tenant’s work situation: Full-time – 30 hours or more") end end