|
|
|
|
@ -221,7 +221,6 @@ RSpec.describe Validations::PropertyValidations do
|
|
|
|
|
expect(log.errors["la"]).to include(I18n.t("validations.lettings.property.la.not_in_england")) |
|
|
|
|
expect(log.errors["postcode_full"]).to include(I18n.t("validations.lettings.property.postcode_full.not_in_england")) |
|
|
|
|
expect(log.errors["uprn"]).to include(I18n.t("validations.lettings.property.uprn.not_in_england")) |
|
|
|
|
expect(log.errors["uprn_confirmation"]).to include(I18n.t("validations.lettings.property.uprn_confirmation.not_in_england")) |
|
|
|
|
expect(log.errors["uprn_selection"]).to include(I18n.t("validations.lettings.property.uprn_selection.not_in_england")) |
|
|
|
|
expect(log.errors["startdate"]).to include(I18n.t("validations.lettings.property.startdate.postcode_not_in_england")) |
|
|
|
|
expect(log.errors["scheme_id"]).to be_empty |
|
|
|
|
@ -241,7 +240,6 @@ RSpec.describe Validations::PropertyValidations do
|
|
|
|
|
expect(log.errors["la"]).to be_empty |
|
|
|
|
expect(log.errors["postcode_full"]).to be_empty |
|
|
|
|
expect(log.errors["uprn"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_confirmation"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_selection"]).to be_empty |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
@ -254,7 +252,6 @@ RSpec.describe Validations::PropertyValidations do
|
|
|
|
|
expect(log.errors["la"]).to be_empty |
|
|
|
|
expect(log.errors["postcode_full"]).to be_empty |
|
|
|
|
expect(log.errors["uprn"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_confirmation"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_selection"]).to be_empty |
|
|
|
|
expect(log.errors["startdate"]).to be_empty |
|
|
|
|
end |
|
|
|
|
@ -274,7 +271,6 @@ RSpec.describe Validations::PropertyValidations do
|
|
|
|
|
expect(log.errors["la"]).to be_empty |
|
|
|
|
expect(log.errors["postcode_full"]).to be_empty |
|
|
|
|
expect(log.errors["uprn"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_confirmation"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_selection"]).to be_empty |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
@ -300,7 +296,6 @@ RSpec.describe Validations::PropertyValidations do
|
|
|
|
|
expect(log.errors["la"]).to be_empty |
|
|
|
|
expect(log.errors["postcode_full"]).to be_empty |
|
|
|
|
expect(log.errors["uprn"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_confirmation"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_selection"]).to be_empty |
|
|
|
|
expect(log.errors["startdate"]).to be_empty |
|
|
|
|
end |
|
|
|
|
@ -314,7 +309,6 @@ RSpec.describe Validations::PropertyValidations do
|
|
|
|
|
expect(log.errors["la"]).to include(I18n.t("validations.lettings.property.la.la_not_valid_for_date", la: local_authority_inactive.name)) |
|
|
|
|
expect(log.errors["postcode_full"]).to include(I18n.t("validations.lettings.property.postcode_full.la_not_valid_for_date", la: local_authority_inactive.name)) |
|
|
|
|
expect(log.errors["uprn"]).to include(I18n.t("validations.lettings.property.uprn.la_not_valid_for_date", la: local_authority_inactive.name)) |
|
|
|
|
expect(log.errors["uprn_confirmation"]).to include(I18n.t("validations.lettings.property.uprn_confirmation.la_not_valid_for_date", la: local_authority_inactive.name)) |
|
|
|
|
expect(log.errors["uprn_selection"]).to include(I18n.t("validations.lettings.property.uprn_selection.la_not_valid_for_date", la: local_authority_inactive.name)) |
|
|
|
|
expect(log.errors["startdate"]).to include(I18n.t("validations.lettings.property.startdate.la_not_valid_for_date", la: local_authority_inactive.name)) |
|
|
|
|
expect(log.errors["scheme_id"]).to be_empty |
|
|
|
|
@ -334,7 +328,6 @@ RSpec.describe Validations::PropertyValidations do
|
|
|
|
|
expect(log.errors["la"]).to be_empty |
|
|
|
|
expect(log.errors["postcode_full"]).to be_empty |
|
|
|
|
expect(log.errors["uprn"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_confirmation"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_selection"]).to be_empty |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
@ -351,7 +344,6 @@ RSpec.describe Validations::PropertyValidations do
|
|
|
|
|
expect(log.errors["la"]).to be_empty |
|
|
|
|
expect(log.errors["postcode_full"]).to be_empty |
|
|
|
|
expect(log.errors["uprn"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_confirmation"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_selection"]).to be_empty |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
@ -370,7 +362,6 @@ RSpec.describe Validations::PropertyValidations do
|
|
|
|
|
expect(log.errors["la"]).to be_empty |
|
|
|
|
expect(log.errors["postcode_full"]).to be_empty |
|
|
|
|
expect(log.errors["uprn"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_confirmation"]).to be_empty |
|
|
|
|
expect(log.errors["uprn_selection"]).to be_empty |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|