Browse Source

CLDC-2439: failing test fix.

pull/1718/head
Aaron Spencer 3 years ago
parent
commit
c6ff46c59b
  1. 2
      spec/models/form/lettings/questions/max_rent_value_check_spec.rb
  2. 2
      spec/models/form/lettings/questions/min_rent_value_check_spec.rb

2
spec/models/form/lettings/questions/max_rent_value_check_spec.rb

@ -28,7 +28,7 @@ RSpec.describe Form::Lettings::Questions::MaxRentValueCheck, type: :model do
end end
it "has the correct hint" do it "has the correct hint" do
expect(question.hint_text).to eq("This is higher than we would expect. Check:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the rent type is correct, for example affordable or social rent</li></ul>") expect(question.hint_text).to eq("Check the following:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the rent type is correct, for example affordable or social rent</li></ul>")
end end
it "has the correct answer_options" do it "has the correct answer_options" do

2
spec/models/form/lettings/questions/min_rent_value_check_spec.rb

@ -28,7 +28,7 @@ RSpec.describe Form::Lettings::Questions::MinRentValueCheck, type: :model do
end end
it "has the correct hint" do it "has the correct hint" do
expect(question.hint_text).to eq("This is lower than we would expect. Check:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the rent type is correct, for example affordable or social rent</li></ul>") expect(question.hint_text).to eq("Check the following:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the rent type is correct, for example affordable or social rent</li></ul>")
end end
it "has the correct answer_options" do it "has the correct answer_options" do

Loading…
Cancel
Save