Skip to content

Commit

Permalink
adjusting_serializer_to_match_new_front_end_data - modularized responses
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-brown-oddball committed Jan 7, 2025
1 parent 127b36d commit 1f5158d
Show file tree
Hide file tree
Showing 2 changed files with 415 additions and 416 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

expect(parsed_response).to eq(
[
PoaRequestResponses.poa_response0(poa_requests, time, expires_at)
PoaRequestResponses.pending_poa_response(poa_requests[0], time, expires_at)
]
)
end
Expand All @@ -53,8 +53,8 @@

expect(parsed_response).to eq(
[
PoaRequestResponses.poa_response_2_with_extra_day(poa_requests, time, time_plus_one_day),
PoaRequestResponses.poa_response1(poa_requests, time)
PoaRequestResponses.veteran_poa_response_with_extra_day(poa_requests[2], time, time_plus_one_day),
PoaRequestResponses.accepted_poa_response(poa_requests[1], time)
]
)
end
Expand All @@ -73,8 +73,8 @@

expect(parsed_response).to eq(
[
PoaRequestResponses.poa_response_2_with_extra_day(poa_requests, time, time_plus_one_day),
PoaRequestResponses.poa_response_1_with_resolution_extra_day(poa_requests, time, time_plus_one_day)
PoaRequestResponses.veteran_poa_response_with_extra_day(poa_requests[2], time, time_plus_one_day),
PoaRequestResponses.poa_response_with_resolution_extra_day(poa_requests[1], time, time_plus_one_day)
]
)
end
Expand All @@ -93,8 +93,8 @@

expect(parsed_response).to eq(
[
PoaRequestResponses.poa_response_2_with_both_extra_day(poa_requests, time_plus_one_day),
PoaRequestResponses.poa_response1(poa_requests, time)
PoaRequestResponses.veteran_poa_response_with_both_extra_day(poa_requests[2], time_plus_one_day),
PoaRequestResponses.accepted_poa_response(poa_requests[1], time)
]
)
end
Expand All @@ -113,7 +113,7 @@

expect(parsed_response).to eq(
[
PoaRequestResponses.poa_response_1_with_resolution_extra_day(poa_requests, time, time_plus_one_day)
PoaRequestResponses.poa_response_with_resolution_extra_day(poa_requests[1], time, time_plus_one_day)
]
)
end
Expand Down Expand Up @@ -145,7 +145,7 @@
expect(response).to have_http_status(:ok)

expect(parsed_response).to eq(
PoaRequestResponses.singular_poa_response(poa_request, time)
PoaRequestResponses.declined_poa_response(poa_request, time)
)
end
end
Expand Down
Loading

0 comments on commit 1f5158d

Please sign in to comment.