@@ -31,9 +31,10 @@ class FakeLogger
31
31
end
32
32
33
33
[
34
- %w[ 123dmain https://123dmain.api.sandbox.checkout.com/ ] ,
35
- %w[ 123domain https://123domain.api.sandbox.checkout.com/ ] ,
36
- %w[ 1234domain https://1234domain.api.sandbox.checkout.com/ ] ,
34
+ %w[ a https://a.api.sandbox.checkout.com/ ] ,
35
+ %w[ ab https://ab.api.sandbox.checkout.com/ ] ,
36
+ %w[ abc https://abc.api.sandbox.checkout.com/ ] ,
37
+ %w[ abc1 https://abc1.api.sandbox.checkout.com/ ] ,
37
38
%w[ 12345domain https://12345domain.api.sandbox.checkout.com/ ]
38
39
] . each do |subdomain , expected_url |
39
40
it "should create configuration with subdomain #{ subdomain } " do
@@ -57,11 +58,13 @@ class FakeLogger
57
58
58
59
[
59
60
[ '' , 'https://api.sandbox.checkout.com/' ] ,
60
- %w[ 123 https://api.sandbox.checkout.com/ ] ,
61
- %w[ 123bad https://api.sandbox.checkout.com/ ] ,
62
- %w[ 12345domainBad https://api.sandbox.checkout.com/ ]
61
+ [ ' ' , 'https://api.sandbox.checkout.com/' ] ,
62
+ [ ' ' , 'https://api.sandbox.checkout.com/' ] ,
63
+ [ ' - ' , 'https://api.sandbox.checkout.com/' ] ,
64
+ [ 'a b' , 'https://api.sandbox.checkout.com/' ] ,
65
+ [ 'ab bc1' , 'https://api.sandbox.checkout.com/' ]
63
66
] . each do |subdomain , expected_url |
64
- it ' should create configuration with bad subdomain #{subdomain}' do
67
+ it " should create configuration with bad subdomain #{ subdomain } " do
65
68
environment_subdomain = CheckoutSdk ::EnvironmentSubdomain . new ( CheckoutSdk ::Environment . sandbox , subdomain )
66
69
67
70
configuration = CheckoutSdk ::CheckoutConfiguration . new (
0 commit comments