Browse Source

Change quotes to apostrophes

pull/902/head
Kat 4 years ago
parent
commit
77dc2ac714
  1. 6
      app/models/form/sales/questions/buyer1_age_known.rb
  2. 6
      spec/models/form/sales/questions/buyer1_age_known_spec.rb

6
app/models/form/sales/questions/buyer1_age_known.rb

@ -2,12 +2,12 @@ class Form::Sales::Questions::Buyer1AgeKnown < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "age1_known" @id = "age1_known"
@check_answer_label = "Buyer 1's age" @check_answer_label = "Buyer 1s age"
@header = "Do you know buyer 1's age?" @header = "Do you know buyer 1s age?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@page = page @page = page
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it's a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If its a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@conditional_for = { @conditional_for = {
"age1" => [0], "age1" => [0],
} }

6
spec/models/form/sales/questions/buyer1_age_known_spec.rb

@ -16,11 +16,11 @@ RSpec.describe Form::Sales::Questions::Buyer1AgeKnown, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Do you know buyer 1's age?") expect(question.header).to eq("Do you know buyer 1s age?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do
expect(question.check_answer_label).to eq("Buyer 1's age") expect(question.check_answer_label).to eq("Buyer 1s age")
end end
it "has the correct type" do it "has the correct type" do
@ -45,6 +45,6 @@ RSpec.describe Form::Sales::Questions::Buyer1AgeKnown, type: :model do
end end
it "has the correct hint" do it "has the correct hint" do
expect(question.hint_text).to eq("Buyer 1 is the person in the household who does the most paid work. If it's a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest.") expect(question.hint_text).to eq("Buyer 1 is the person in the household who does the most paid work. If its a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest.")
end end
end end

Loading…
Cancel
Save