diff --git a/spec/models/form/lettings/questions/address_line1_spec.rb b/spec/models/form/lettings/questions/address_line1_spec.rb index 2c13aef48..8b55d86c5 100644 --- a/spec/models/form/lettings/questions/address_line1_spec.rb +++ b/spec/models/form/lettings/questions/address_line1_spec.rb @@ -24,7 +24,7 @@ RSpec.describe Form::Lettings::Questions::AddressLine1, type: :model do end it "has the correct check_answer_label" do - expect(question.check_answer_label).to eq("Q12 - Address") + expect(question.check_answer_label).to eq("Q12 - Address lines 1 and 2") end it "has the correct type" do diff --git a/spec/models/form/lettings/questions/county_spec.rb b/spec/models/form/lettings/questions/county_spec.rb index cf8f814e4..96abb6acc 100644 --- a/spec/models/form/lettings/questions/county_spec.rb +++ b/spec/models/form/lettings/questions/county_spec.rb @@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Questions::County, type: :model do end it "has the correct check_answer_label" do - expect(question.check_answer_label).to be_nil + expect(question.check_answer_label).to eq("Q12 - County") end it "has the correct type" do diff --git a/spec/models/form/lettings/questions/postcode_for_full_address_spec.rb b/spec/models/form/lettings/questions/postcode_for_full_address_spec.rb index ccb02ef07..a8127d5c4 100644 --- a/spec/models/form/lettings/questions/postcode_for_full_address_spec.rb +++ b/spec/models/form/lettings/questions/postcode_for_full_address_spec.rb @@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Questions::PostcodeForFullAddress, type: :model d end it "has the correct check_answer_label" do - expect(question.check_answer_label).to be_nil + expect(question.check_answer_label).to eq("Q12 - Postcode") end it "has the correct type" do diff --git a/spec/models/form/lettings/questions/town_or_city_spec.rb b/spec/models/form/lettings/questions/town_or_city_spec.rb index 8741fb058..65f1ea13d 100644 --- a/spec/models/form/lettings/questions/town_or_city_spec.rb +++ b/spec/models/form/lettings/questions/town_or_city_spec.rb @@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Questions::TownOrCity, type: :model do end it "has the correct check_answer_label" do - expect(question.check_answer_label).to be_nil + expect(question.check_answer_label).to eq("Q12 - Town or city") end it "has the correct type" do diff --git a/spec/models/form/sales/questions/address_line1_spec.rb b/spec/models/form/sales/questions/address_line1_spec.rb index 8c73feef2..d39cb93fd 100644 --- a/spec/models/form/sales/questions/address_line1_spec.rb +++ b/spec/models/form/sales/questions/address_line1_spec.rb @@ -24,7 +24,7 @@ RSpec.describe Form::Sales::Questions::AddressLine1, type: :model do end it "has the correct check_answer_label" do - expect(question.check_answer_label).to eq("Q15 - Address") + expect(question.check_answer_label).to eq("Q15 - Address lines 1 and 2") end it "has the correct type" do diff --git a/spec/models/form/sales/questions/county_spec.rb b/spec/models/form/sales/questions/county_spec.rb index d5800b260..5d02209d4 100644 --- a/spec/models/form/sales/questions/county_spec.rb +++ b/spec/models/form/sales/questions/county_spec.rb @@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Questions::County, type: :model do end it "has the correct check_answer_label" do - expect(question.check_answer_label).to be_nil + expect(question.check_answer_label).to eq("Q15 - County") end it "has the correct type" do diff --git a/spec/models/form/sales/questions/postcode_for_full_address_spec.rb b/spec/models/form/sales/questions/postcode_for_full_address_spec.rb index a655172ec..63f305321 100644 --- a/spec/models/form/sales/questions/postcode_for_full_address_spec.rb +++ b/spec/models/form/sales/questions/postcode_for_full_address_spec.rb @@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Questions::PostcodeForFullAddress, type: :model do end it "has the correct check_answer_label" do - expect(question.check_answer_label).to be_nil + expect(question.check_answer_label).to eq("Q15 - Postcode") end it "has the correct type" do diff --git a/spec/models/form/sales/questions/town_or_city_spec.rb b/spec/models/form/sales/questions/town_or_city_spec.rb index d66315864..83b32ef67 100644 --- a/spec/models/form/sales/questions/town_or_city_spec.rb +++ b/spec/models/form/sales/questions/town_or_city_spec.rb @@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Questions::TownOrCity, type: :model do end it "has the correct check_answer_label" do - expect(question.check_answer_label).to be_nil + expect(question.check_answer_label).to eq("Q15 - Town or city") end it "has the correct type" do diff --git a/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb b/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb index 8586a470c..0a4bef0c3 100644 --- a/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb @@ -340,8 +340,8 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do it "fetches the question's check_answer_label if it exists, otherwise it gets the question's header" do parser.valid? - expect(parser.errors[:field_19]).to eql(["You must answer q12 - address"]) - expect(parser.errors[:field_21]).to eql(["You must answer town or city"]) + expect(parser.errors[:field_19]).to eql(["You must answer q12 - address lines 1 and 2"]) + expect(parser.errors[:field_21]).to eql(["You must answer q12 - town or city"]) end end end @@ -937,8 +937,8 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do it "adds appropriate errors" do expect(parser.errors[:field_18]).to eql(["You must answer UPRN"]) - expect(parser.errors[:field_19]).to eql(["You must answer q12 - address"]) - expect(parser.errors[:field_21]).to eql(["You must answer town or city"]) + expect(parser.errors[:field_19]).to eql(["You must answer q12 - address lines 1 and 2"]) + expect(parser.errors[:field_21]).to eql(["You must answer q12 - town or city"]) end end