Browse Source

test

pull/1584/head
Kat 3 years ago
parent
commit
ccce7863ed
  1. 14
      spec/helpers/interruption_screen_helper_spec.rb

14
spec/helpers/interruption_screen_helper_spec.rb

@ -34,14 +34,9 @@ RSpec.describe InterruptionScreenHelper do
"translation" => "soft_validations.net_income.hint_text", "translation" => "soft_validations.net_income.hint_text",
"arguments" => [ "arguments" => [
{ {
"key" => "ecstat1", "key" => "net_income_higher_or_lower_text",
"label" => true, "label" => false,
"i18n_template" => "ecstat1", "i18n_template" => "net_income_higher_or_lower_text",
},
{
"key" => "earnings",
"label" => true,
"i18n_template" => "earnings",
}, },
], ],
} }
@ -49,8 +44,7 @@ RSpec.describe InterruptionScreenHelper do
.to eq( .to eq(
I18n.t( I18n.t(
"soft_validations.net_income.hint_text", "soft_validations.net_income.hint_text",
ecstat1: lettings_log.form.get_question("ecstat1", lettings_log).answer_label(lettings_log).downcase, net_income_higher_or_lower_text: "higher",
earnings: lettings_log.form.get_question("earnings", lettings_log).answer_label(lettings_log),
), ),
) )
end end

Loading…
Cancel
Save