File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 260
260
. to eq ( 'https://terminal-api-test.adyen.com/connectedTerminals' )
261
261
262
262
end
263
+
264
+ it 'checks the initialization of the terminal region' do
265
+ client = Adyen ::Client . new ( api_key : 'api_key' , env : :test , terminal_region : 'eu' )
266
+ expect ( client . service_url ( 'TerminalCloudAPI' , 'connectedTerminals' , nil ) )
267
+ . to eq ( 'https://terminal-api-test-eu.adyen.com/connectedTerminals' )
268
+ end
269
+
270
+ it 'checks the initialization of the terminal region set to nil per default' do
271
+ client = Adyen ::Client . new ( api_key : 'api_key' , env : :test )
272
+ expect ( client . service_url ( 'TerminalCloudAPI' , 'connectedTerminals' , nil ) )
273
+ . to eq ( 'https://terminal-api-test.adyen.com/connectedTerminals' )
274
+ end
263
275
end
You can’t perform that action at this time.
0 commit comments