Browse Source

update change link test

pull/222/head
MadeTech Dushan 4 years ago
parent
commit
3b8cd44651
  1. 2
      spec/models/form/question_spec.rb

2
spec/models/form/question_spec.rb

@ -107,7 +107,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(subject.update_answer_link_name(case_log)).to eq("Answer") expect(subject.update_answer_link_name(case_log)).to eq("Answer")
case_log[question_id] = 5 case_log[question_id] = 5
expect(subject.update_answer_link_name(case_log)).to include("Change") expect(subject.update_answer_link_name(case_log)).to eq("Change<span class=\"govuk-visually-hidden\"> income</span>")
end end
context "when type is date" do context "when type is date" do

Loading…
Cancel
Save