From d7cd1a2540151ed95d1a905c95a98dabbb1d21b2 Mon Sep 17 00:00:00 2001 From: Kat Date: Wed, 28 Feb 2024 16:35:24 +0000 Subject: [PATCH] Fix apostrophes --- app/models/form/sales/questions/buyer_interview.rb | 2 +- app/models/form/sales/questions/number_joint_buyers.rb | 2 +- spec/models/form/sales/questions/buyer_interview_spec.rb | 4 ++-- spec/models/form/sales/questions/number_joint_buyers_spec.rb | 2 +- spec/requests/lettings_logs_controller_spec.rb | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/form/sales/questions/buyer_interview.rb b/app/models/form/sales/questions/buyer_interview.rb index f957b392a..cd9939d53 100644 --- a/app/models/form/sales/questions/buyer_interview.rb +++ b/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?" @header = "#{joint_purchase ? 'Were the buyers' : 'Was the buyer'} interviewed for any of the answers you will provide on this log?" @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 weren’t" : "buyer wasn’t"} interviewed in person" @answer_options = ANSWER_OPTIONS @question_number = 18 end diff --git a/app/models/form/sales/questions/number_joint_buyers.rb b/app/models/form/sales/questions/number_joint_buyers.rb index d335d2dbf..8b7c07334 100644 --- a/app/models/form/sales/questions/number_joint_buyers.rb +++ b/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? nil 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 weren’t interviewed in person" end end end diff --git a/spec/models/form/sales/questions/buyer_interview_spec.rb b/spec/models/form/sales/questions/buyer_interview_spec.rb index 0dc25978f..ae706cb2f 100644 --- a/spec/models/form/sales/questions/buyer_interview_spec.rb +++ b/spec/models/form/sales/questions/buyer_interview_spec.rb @@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::BuyerInterview, type: :model do end 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 wasn’t interviewed in person") end it "has the correct answer_options" do @@ -50,7 +50,7 @@ RSpec.describe Form::Sales::Questions::BuyerInterview, type: :model do end 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 weren’t interviewed in person") end it "has the correct check_answer_label" do diff --git a/spec/models/form/sales/questions/number_joint_buyers_spec.rb b/spec/models/form/sales/questions/number_joint_buyers_spec.rb index c7714680c..5340841c6 100644 --- a/spec/models/form/sales/questions/number_joint_buyers_spec.rb +++ b/spec/models/form/sales/questions/number_joint_buyers_spec.rb @@ -38,7 +38,7 @@ RSpec.describe Form::Sales::Questions::NumberJointBuyers, type: :model do end 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 weren’t interviewed in person") end it "has the correct answer_options" do diff --git a/spec/requests/lettings_logs_controller_spec.rb b/spec/requests/lettings_logs_controller_spec.rb index 34dc49ba0..08f69ca78 100644 --- a/spec/requests/lettings_logs_controller_spec.rb +++ b/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") 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 wasn’t answered" do get "/lettings-logs/#{id}/income-and-benefits/check-answers" expect(CGI.unescape_html(response.body)).to include("You didn’t answer this question") end