Skip to content

Commit

Permalink
modify partner profile update service spec to reflect new error message
Browse files Browse the repository at this point in the history
  • Loading branch information
McEileen committed Nov 15, 2024
1 parent 66fdc9c commit beec1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/services/partner_profile_update_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit beec1c8

Please sign in to comment.