Skip to content

Commit

Permalink
added unittest for terminal_region (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
DjoykeAbyah authored Sep 17, 2024
1 parent 3899c57 commit 57541f0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,16 @@
.to eq('https://terminal-api-test.adyen.com/connectedTerminals')

end

it 'checks the initialization of the terminal region' do
client = Adyen::Client.new(api_key: 'api_key', env: :test, terminal_region: 'eu')
expect(client.service_url('TerminalCloudAPI', 'connectedTerminals', nil))
.to eq('https://terminal-api-test-eu.adyen.com/connectedTerminals')
end

it 'checks the initialization of the terminal region set to nil per default' do
client = Adyen::Client.new(api_key: 'api_key', env: :test)
expect(client.service_url('TerminalCloudAPI', 'connectedTerminals', nil))
.to eq('https://terminal-api-test.adyen.com/connectedTerminals')
end
end

0 comments on commit 57541f0

Please sign in to comment.