Skip to content

Commit fd25d16

Browse files
committed
Address Gemini feedback
1 parent 6447282 commit fd25d16

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

spec/client_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@
446446
client.payment.payments_api.authorise({})
447447
}.to raise_error(Adyen::NotFoundError) do |error|
448448
expect(error.code).to eq(404)
449+
expect(error.msg).to eq('Not found error')
449450
end
450451
end
451452

spec/lem_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292

9393
it 'raises an error when calling legal_entities GET call' do
9494
invalid_legal_entity_id = 'NON_EXISTENT_ID'
95-
error_response_body = '{ "status": 404, "errorCode": "100", "message": "Legal entity not found", "errorType": "validation" }'
95+
error_response_body = { status: 404, errorCode: '100', message: 'Legal entity not found', errorType: 'validation' }.to_json
9696

9797
url = @shared_values[:client].service_url(@shared_values[:service], "legalEntities/#{invalid_legal_entity_id}",
9898
@shared_values[:client].legal_entity_management.version)
@@ -112,6 +112,7 @@
112112
end.to raise_error(Adyen::NotFoundError) do |error|
113113
expect(error.code).to eq(404)
114114
expect(error.msg).to include("Legal entity not found")
115+
expect(error.msg).to eq('Legal entity not found ErrorCode: 100')
115116
end
116117
end
117118
end

0 commit comments

Comments
 (0)