From df0c0fbf1bf1a815462c9e44a8e94ee17c9c033f Mon Sep 17 00:00:00 2001 From: Tyler Coleman Date: Tue, 17 Dec 2024 12:57:54 -0800 Subject: [PATCH] update test --- .../v2/veterans/power_of_attorney/request_controller_spec.rb | 4 ++-- .../request_representative/valid_no_claimant.json | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/claims_api/spec/controllers/v2/veterans/power_of_attorney/request_controller_spec.rb b/modules/claims_api/spec/controllers/v2/veterans/power_of_attorney/request_controller_spec.rb index 3051a28075e..27c8d6704af 100644 --- a/modules/claims_api/spec/controllers/v2/veterans/power_of_attorney/request_controller_spec.rb +++ b/modules/claims_api/spec/controllers/v2/veterans/power_of_attorney/request_controller_spec.rb @@ -384,8 +384,8 @@ create_request_with(veteran_id:, form_attributes:, auth_header:) expect(response).to have_http_status(:created) - expect(JSON.parse(response.body)['data']['attributes']['id']).not_to be_nil - expect(JSON.parse(response.body)['data']['attributes']['type']).to eq('power-of-attorney-request') + expect(JSON.parse(response.body)['data']['id']).not_to be_nil + expect(JSON.parse(response.body)['data']['type']).to eq('power-of-attorney-request') end end end diff --git a/modules/claims_api/spec/fixtures/v2/veterans/power_of_attorney/request_representative/valid_no_claimant.json b/modules/claims_api/spec/fixtures/v2/veterans/power_of_attorney/request_representative/valid_no_claimant.json index 22fc13a4e9c..fa0e07458d5 100644 --- a/modules/claims_api/spec/fixtures/v2/veterans/power_of_attorney/request_representative/valid_no_claimant.json +++ b/modules/claims_api/spec/fixtures/v2/veterans/power_of_attorney/request_representative/valid_no_claimant.json @@ -1,5 +1,7 @@ { "data": { + "id": null, + "type": "power-of-attorney-request", "attributes": { "veteran": { "serviceNumber": "123678453",