Skip to content

Commit

Permalink
Update form submission statuses to be in caps
Browse files Browse the repository at this point in the history
  • Loading branch information
pixiitech committed Feb 21, 2025
1 parent 4fc0778 commit cd2a734
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ class PowerOfAttorneyRequestSerializer < ApplicationSerializer
status =
case poa_request.power_of_attorney_form_submission&.status
when PowerOfAttorneyFormSubmission::Statuses::SUCCEEDED
'succeeded'
'SUCCEEDED'
when PowerOfAttorneyFormSubmission::Statuses::ENQUEUE_FAILED,
PowerOfAttorneyFormSubmission::Statuses::FAILED
'failed'
'FAILED'
else
'pending'
'PENDING'
end

{ status: }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def load_response_fixture(path_suffix)
'id' => poa_requests[1].accredited_organization.poa
},
'powerOfAttorneyFormSubmission' => {
'status' => 'pending'
'status' => 'PENDING'
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
context 'when there is a resolution of type Acceptance' do
it 'does include a submission' do
submission_data = veteran_accepted_data[:powerOfAttorneyFormSubmission]
expect(submission_data[:status]).to be_in(%w[pending failed succeeded])
expect(submission_data[:status]).to be_in(%w[PENDING FAILED SUCCEEDED])
end
end
end
Expand Down

0 comments on commit cd2a734

Please sign in to comment.