Browse Source

Keep previous punctuation

pull/2453/head
Rachael Booth 2 years ago
parent
commit
263f23123a
  1. 6
      app/services/bulk_upload/lettings/year2023/row_parser.rb
  2. 8
      app/services/bulk_upload/lettings/year2024/row_parser.rb
  3. 1
      spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb

6
app/services/bulk_upload/lettings/year2023/row_parser.rb

@ -339,7 +339,7 @@ class BulkUpload::Lettings::Year2023::RowParser
validates :field_116, validates :field_116,
presence: { presence: {
message: I18n.t("validations.not_answered", question: "was the letting made under the Choice-Based Lettings (CBL)"), message: I18n.t("validations.not_answered", question: "was the letting made under the Choice-Based Lettings (CBL)?"),
category: :not_answered, category: :not_answered,
}, },
inclusion: { inclusion: {
@ -351,7 +351,7 @@ class BulkUpload::Lettings::Year2023::RowParser
validates :field_117, validates :field_117,
presence: { presence: {
message: I18n.t("validations.not_answered", question: "was the letting made under the Common Allocation Policy (CAP)"), message: I18n.t("validations.not_answered", question: "was the letting made under the Common Allocation Policy (CAP)?"),
category: :not_answered, category: :not_answered,
}, },
inclusion: { inclusion: {
@ -363,7 +363,7 @@ class BulkUpload::Lettings::Year2023::RowParser
validates :field_118, validates :field_118,
presence: { presence: {
message: I18n.t("validations.not_answered", question: "was the letting made under the Common Housing Register (CHR)"), message: I18n.t("validations.not_answered", question: "was the letting made under the Common Housing Register (CHR)?"),
category: :not_answered, category: :not_answered,
}, },
inclusion: { inclusion: {

8
app/services/bulk_upload/lettings/year2024/row_parser.rb

@ -339,7 +339,7 @@ class BulkUpload::Lettings::Year2024::RowParser
validates :field_112, validates :field_112,
presence: { presence: {
message: I18n.t("validations.not_answered", question: "was the letting made under the Choice-Based Lettings (CBL)"), message: I18n.t("validations.not_answered", question: "was the letting made under the Choice-Based Lettings (CBL)?"),
category: :not_answered, category: :not_answered,
}, },
inclusion: { inclusion: {
@ -351,7 +351,7 @@ class BulkUpload::Lettings::Year2024::RowParser
validates :field_113, validates :field_113,
presence: { presence: {
message: I18n.t("validations.not_answered", question: "was the letting made under the Common Allocation Policy (CAP)"), message: I18n.t("validations.not_answered", question: "was the letting made under the Common Allocation Policy (CAP)?"),
category: :not_answered, category: :not_answered,
}, },
inclusion: { inclusion: {
@ -363,7 +363,7 @@ class BulkUpload::Lettings::Year2024::RowParser
validates :field_114, validates :field_114,
presence: { presence: {
message: I18n.t("validations.not_answered", question: "was the letting made under the Common Housing Register (CHR)"), message: I18n.t("validations.not_answered", question: "was the letting made under the Common Housing Register (CHR)?"),
category: :not_answered, category: :not_answered,
}, },
inclusion: { inclusion: {
@ -375,7 +375,7 @@ class BulkUpload::Lettings::Year2024::RowParser
validates :field_115, validates :field_115,
presence: { presence: {
message: I18n.t("validations.not_answered", question: "was the letting made under the Accessible Register"), message: I18n.t("validations.not_answered", question: "was the letting made under the Accessible Register?"),
category: :not_answered, category: :not_answered,
}, },
inclusion: { inclusion: {

1
spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb

@ -220,6 +220,7 @@ RSpec.describe BulkUpload::Lettings::Year2024::RowParser do
field_112: "1", field_112: "1",
field_113: "2", field_113: "2",
field_114: "2", field_114: "2",
field_115: "2",
field_116: "2", field_116: "2",

Loading…
Cancel
Save