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