Skip to content

Commit 7ab63e8

Browse files
committed
Add test for LEM /requestPeriodicReview
1 parent 92f7c41 commit 7ab63e8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

spec/lem_spec.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,25 @@
114114
expect(error.msg).to eq('Legal entity not found ErrorCode: 100')
115115
end
116116
end
117+
118+
it 'makes a LegaleEntity /requestPeriodicReview call' do
119+
url = @shared_values[:client].service_url(@shared_values[:service], "legalEntities/LE123/requestPeriodicReview",
120+
@shared_values[:client].legal_entity_management.version)
121+
WebMock.stub_request(:post, url)
122+
.with(
123+
headers: {
124+
'x-api-key' => @shared_values[:client].api_key
125+
}
126+
)
127+
.to_return(
128+
body: '{}'
129+
)
130+
131+
result = @shared_values[:client].legal_entity_management.legal_entities_api.request_periodic_review('LE123')
132+
result.response
133+
134+
expect(result.status)
135+
.to eq(200)
136+
end
137+
117138
end

0 commit comments

Comments
 (0)