From beec1c83b44718dec0d28be50d8067fdc113d904 Mon Sep 17 00:00:00 2001 From: McEileen Date: Fri, 15 Nov 2024 13:30:54 +0000 Subject: [PATCH] modify partner profile update service spec to reflect new error message --- spec/services/partner_profile_update_service_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/services/partner_profile_update_service_spec.rb b/spec/services/partner_profile_update_service_spec.rb index 25b2446bc5..97108d73ba 100644 --- a/spec/services/partner_profile_update_service_spec.rb +++ b/spec/services/partner_profile_update_service_spec.rb @@ -88,7 +88,7 @@ expect(profile.served_areas.size).to eq(2) result = PartnerProfileUpdateService.new(profile.partner, partner_params, incorrect_attributes_missing_client_share).call expect(result.success?).to eq(false) - expect(result.error.to_s).to include("Validation failed: Served areas client share is not a number, Served areas client share is not included in the list") + expect(result.error.to_s).to include("Validation failed: Served areas client share is not a number, Served areas client share Client share must be between 1 and 100 inclusive") profile.reload expect(profile.served_areas.size).to eq(2) end