CLDC-2267 More errors considered as setup errors (#1531)
# Context
- https://digital.dclg.gov.uk/jira/browse/CLDC-2267
- Consider errors on owning and managing org fields as setup errors
- Otherwise the user is not shown the summary report to highlight these as blocking issues to resolve
# Changes
- if there are problems with owning or managing org fields these are now considered as setup errors
expect(setup_errors.find{|e|e.attribute==:field_111}.message).toeql("The owning organisation code provided is for an organisation that does not own stock")
end
end
it"blocks log creation"do
it"blocks log creation"do
@ -738,8 +742,10 @@ RSpec.describe BulkUpload::Lettings::Year2022::RowParser do
expect(setup_errors.find{|e|e.attribute==:field_113}.message).toeql("This managing organisation does not have a relationship with the owning organisation")
expect(setup_errors.find{|e|e.attribute==:field_1}.message).toeql("The owning organisation code provided is for an organisation that does not own stock")
end
end
it"blocks log creation"do
it"blocks log creation"do
@ -714,8 +720,10 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do
expect(setup_errors.find{|e|e.attribute==:field_2}.message).toeql("This managing organisation does not have a relationship with the owning organisation")