Browse Source

fix specs

pull/338/head
MadeTech Dushan 3 years ago
parent
commit
e0791eb48a
  1. 6
      spec/helpers/interuption_screen_helper_spec.rb

6
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("This is based on the tenant’s work situation: Full-time – 30 hours or more<br>The household income you have entered is £750.00 every week")
.to eq("<p class='govuk-body'>This is based on the tenant’s work situation: <strong>Full-time – 30 hours or more</strong><br>The household income you have entered is <strong>£750.00 every week</strong></p>")
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("<p class='govuk-body'>This is based on the tenant’s work situation: Full-time – 30 hours or more</p>")
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("<p class='govuk-body'>This is based on the tenant’s work situation: Full-time – 30 hours or more</p>")
end
end

Loading…
Cancel
Save