Browse Source

fix failing spec

pull/273/head
MadeTech Dushan 3 years ago
parent
commit
14d77b6cc5
  1. 1
      spec/models/form/question_spec.rb

1
spec/models/form/question_spec.rb

@ -108,6 +108,7 @@ RSpec.describe Form::Question, type: :model do
it "has an update answer link text helper" do
expect(question.update_answer_link_name(case_log)).to eq("Answer<span class=\"govuk-visually-hidden\"> income</span>")
case_log[question_id] = 5
case_log["incfreq"] = "Weekly"
expect(question.update_answer_link_name(case_log)).to eq("Change<span class=\"govuk-visually-hidden\"> income</span>")
end

Loading…
Cancel
Save