Browse Source

Fix apostrophes

pull/2272/head
Kat 2 years ago
parent
commit
d7cd1a2540
  1. 2
      app/models/form/sales/questions/buyer_interview.rb
  2. 2
      app/models/form/sales/questions/number_joint_buyers.rb
  3. 4
      spec/models/form/sales/questions/buyer_interview_spec.rb
  4. 2
      spec/models/form/sales/questions/number_joint_buyers_spec.rb
  5. 2
      spec/requests/lettings_logs_controller_spec.rb

2
app/models/form/sales/questions/buyer_interview.rb

@ -5,7 +5,7 @@ class Form::Sales::Questions::BuyerInterview < ::Form::Question
@check_answer_label = "#{joint_purchase ? 'Buyers' : 'Buyer'} interviewed in person?" @check_answer_label = "#{joint_purchase ? 'Buyers' : 'Buyer'} interviewed in person?"
@header = "#{joint_purchase ? 'Were the buyers' : 'Was the buyer'} interviewed for any of the answers you will provide on this log?" @header = "#{joint_purchase ? 'Were the buyers' : 'Was the buyer'} interviewed for any of the answers you will provide on this log?"
@type = "radio" @type = "radio"
@hint_text = "You should still try to answer all questions even if the #{joint_purchase ? "buyers weren't" : "buyer wasn't"} interviewed in person" @hint_text = "You should still try to answer all questions even if the #{joint_purchase ? "buyers werent" : "buyer wasnt"} interviewed in person"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = 18 @question_number = 18
end end

2
app/models/form/sales/questions/number_joint_buyers.rb

@ -19,7 +19,7 @@ class Form::Sales::Questions::NumberJointBuyers < ::Form::Question
if form.start_year_after_2024? if form.start_year_after_2024?
nil nil
else else
"You should still try to answer all questions even if the buyers weren't interviewed in person" "You should still try to answer all questions even if the buyers werent interviewed in person"
end end
end end
end end

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

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::BuyerInterview, type: :model do
end end
it "has the correct hint" do it "has the correct hint" do
expect(question.hint_text).to eq("You should still try to answer all questions even if the buyer wasn't interviewed in person") expect(question.hint_text).to eq("You should still try to answer all questions even if the buyer wasnt interviewed in person")
end end
it "has the correct answer_options" do it "has the correct answer_options" do
@ -50,7 +50,7 @@ RSpec.describe Form::Sales::Questions::BuyerInterview, type: :model do
end end
it "has the correct hint_text" do it "has the correct hint_text" do
expect(question.hint_text).to eq("You should still try to answer all questions even if the buyers weren't interviewed in person") expect(question.hint_text).to eq("You should still try to answer all questions even if the buyers werent interviewed in person")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/number_joint_buyers_spec.rb

@ -38,7 +38,7 @@ RSpec.describe Form::Sales::Questions::NumberJointBuyers, type: :model do
end end
it "has the correct hint_text" do it "has the correct hint_text" do
expect(question.hint_text).to eq("You should still try to answer all questions even if the buyers weren't interviewed in person") expect(question.hint_text).to eq("You should still try to answer all questions even if the buyers werent interviewed in person")
end end
it "has the correct answer_options" do it "has the correct answer_options" do

2
spec/requests/lettings_logs_controller_spec.rb

@ -1309,7 +1309,7 @@ RSpec.describe LettingsLogsController, type: :request do
expect(CGI.unescape_html(response.body)).to include("Not known") expect(CGI.unescape_html(response.body)).to include("Not known")
end end
it "shows `you haven't answered this question` if the question wasn't answered" do it "shows `you haven't answered this question` if the question wasnt answered" do
get "/lettings-logs/#{id}/income-and-benefits/check-answers" get "/lettings-logs/#{id}/income-and-benefits/check-answers"
expect(CGI.unescape_html(response.body)).to include("You didn’t answer this question") expect(CGI.unescape_html(response.body)).to include("You didn’t answer this question")
end end

Loading…
Cancel
Save