@@ -70,10 +70,10 @@ module WebDriver
70
70
it 'should return a hash of the json properties to serialize' , :aggregate_failures do
71
71
proxy_json = Proxy . new ( proxy_settings ) . as_json
72
72
73
- expect ( proxy_json [ 'proxyType' ] ) . to eq ( 'MANUAL ' )
73
+ expect ( proxy_json [ 'proxyType' ] ) . to eq ( 'manual ' )
74
74
expect ( proxy_json [ 'ftpProxy' ] ) . to eq ( proxy_settings [ :ftp ] )
75
75
expect ( proxy_json [ 'httpProxy' ] ) . to eq ( proxy_settings [ :http ] )
76
- expect ( proxy_json [ 'noProxy' ] ) . to eq ( proxy_settings [ :no_proxy ] )
76
+ expect ( proxy_json [ 'noProxy' ] ) . to eq ( [ proxy_settings [ :no_proxy ] ] )
77
77
expect ( proxy_json [ 'sslProxy' ] ) . to eq ( proxy_settings [ :ssl ] )
78
78
expect ( proxy_json [ 'socksProxy' ] ) . to eq ( proxy_settings [ :socks ] )
79
79
expect ( proxy_json [ 'socksUsername' ] ) . to eq ( proxy_settings [ :socks_username ] )
@@ -84,14 +84,14 @@ module WebDriver
84
84
it 'should configure a PAC proxy' , :aggregate_failures do
85
85
proxy_json = Proxy . new ( pac_proxy_settings ) . as_json
86
86
87
- expect ( proxy_json [ 'proxyType' ] ) . to eq ( 'PAC ' )
87
+ expect ( proxy_json [ 'proxyType' ] ) . to eq ( 'pac ' )
88
88
expect ( proxy_json [ 'proxyAutoconfigUrl' ] ) . to eq ( pac_proxy_settings [ :pac ] )
89
89
end
90
90
91
91
it 'should configure an auto-detected proxy' , :aggregate_failures do
92
92
proxy_json = Proxy . new ( auto_detect : true ) . as_json
93
93
94
- expect ( proxy_json [ 'proxyType' ] ) . to eq ( 'AUTODETECT ' )
94
+ expect ( proxy_json [ 'proxyType' ] ) . to eq ( 'autodetect ' )
95
95
expect ( proxy_json [ 'autodetect' ] ) . to be true
96
96
end
97
97
@@ -101,7 +101,7 @@ module WebDriver
101
101
proxy = Proxy . new ( settings )
102
102
proxy_json = proxy . as_json
103
103
104
- expect ( proxy_json . delete ( 'proxyType' ) ) . to eq ( settings [ :type ] . to_s . upcase )
104
+ expect ( proxy_json . delete ( 'proxyType' ) ) . to eq ( settings [ :type ] . to_s )
105
105
expect ( proxy_json . delete ( 'httpProxy' ) ) . to eq ( settings [ :http ] )
106
106
107
107
expect ( proxy_json ) . to be_empty
0 commit comments