File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 46
46
end
47
47
end
48
48
49
- context 'when a CA certificate is provided' , if : running_ssl? && testing_locally ? do
49
+ context 'when a CA certificate is provided' , if : testing_ssl_locally ? do
50
50
51
51
let ( :options ) do
52
52
{
67
67
end
68
68
end
69
69
70
- context 'when a CA certificate is not provided' , if : running_ssl? && testing_locally ? do
70
+ context 'when a CA certificate is not provided' , if : testing_ssl_locally ? do
71
71
72
72
let ( :options ) do
73
73
{
88
88
end
89
89
end
90
90
91
- context 'when ssl_verify is not specified' do
91
+ context 'when ssl_verify is not specified' , if : testing_ssl_locally? do
92
92
93
93
let ( :options ) do
94
94
{
108
108
end
109
109
end
110
110
111
- context 'when ssl_verify is true' do
111
+ context 'when ssl_verify is true' , if : testing_ssl_locally? do
112
112
113
113
let ( :options ) do
114
114
{
Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ def list_command_enabled?
152
152
# Is the test suite running locally (not on Travis or Jenkins).
153
153
#
154
154
# @since 2.1.0
155
- def testing_locally ?
156
- !( ENV [ 'CI' ] || ENV [ 'JENKINS_HOME ' ] )
155
+ def testing_ssl_locally ?
156
+ running_ssl? && !( ENV [ 'CI' ] || ENV [ 'JENKINS_CI ' ] )
157
157
end
158
158
159
159
# Is the test suite running on SSL.
You can’t perform that action at this time.
0 commit comments