Browse Source

Purchaser code hint text (#879)

pull/881/head
baarkerlounger 2 years ago committed by GitHub
parent
commit
f58c4054ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/models/form/sales/questions/purchaser_code.rb
  2. 4
      spec/models/form/sales/questions/purchaser_code_spec.rb

1
app/models/form/sales/questions/purchaser_code.rb

@ -4,6 +4,7 @@ class Form::Sales::Questions::PurchaserCode < ::Form::Question
@id = "purchid" @id = "purchid"
@check_answer_label = "Purchaser code" @check_answer_label = "Purchaser code"
@header = "What is the purchaser code?" @header = "What is the purchaser code?"
@hint_text = "This is how you usually refer to the purchaser on your own systems."
@type = "text" @type = "text"
@width = 10 @width = 10
@page = page @page = page

4
spec/models/form/sales/questions/purchaser_code_spec.rb

@ -19,6 +19,10 @@ RSpec.describe Form::Sales::Questions::PurchaserCode, type: :model do
expect(question.header).to eq("What is the purchaser code?") expect(question.header).to eq("What is the purchaser code?")
end end
it "has the correct hint_text" do
expect(question.hint_text).to eq("This is how you usually refer to the purchaser on your own systems.")
end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do
expect(question.check_answer_label).to eq("Purchaser code") expect(question.check_answer_label).to eq("Purchaser code")
end end

Loading…
Cancel
Save