@@ -83,7 +83,7 @@ def test_execute_add
83
83
84
84
cert_path = @trust_dir . cert_path PUBLIC_CERT
85
85
86
- assert_path_exists cert_path
86
+ assert_path_exist cert_path
87
87
88
88
assert_equal "Added '/CN=nobody/DC=example'\n " , @ui . output
89
89
assert_empty @ui . error
@@ -138,8 +138,8 @@ def test_execute_build
138
138
assert_empty output
139
139
assert_empty @build_ui . error
140
140
141
- assert_path_exists File . join ( @tempdir , 'gem-private_key.pem' )
142
- assert_path_exists File . join ( @tempdir , 'gem-public_cert.pem' )
141
+ assert_path_exist File . join ( @tempdir , 'gem-private_key.pem' )
142
+ assert_path_exist File . join ( @tempdir , 'gem-public_cert.pem' )
143
143
end
144
144
145
145
def test_execute_build_bad_email_address
@@ -159,8 +159,8 @@ def test_execute_build_bad_email_address
159
159
assert_equal "Invalid email address #{ email } " ,
160
160
e . message
161
161
162
- refute_path_exists File . join ( @tempdir , 'gem-private_key.pem' )
163
- refute_path_exists File . join ( @tempdir , 'gem-public_cert.pem' )
162
+ assert_path_not_exist File . join ( @tempdir , 'gem-private_key.pem' )
163
+ assert_path_not_exist File . join ( @tempdir , 'gem-public_cert.pem' )
164
164
end
165
165
end
166
166
@@ -195,8 +195,8 @@ def test_execute_build_expiration_days
195
195
assert_empty output
196
196
assert_empty @build_ui . error
197
197
198
- assert_path_exists File . join ( @tempdir , 'gem-private_key.pem' )
199
- assert_path_exists File . join ( @tempdir , 'gem-public_cert.pem' )
198
+ assert_path_exist File . join ( @tempdir , 'gem-private_key.pem' )
199
+ assert_path_exist File . join ( @tempdir , 'gem-public_cert.pem' )
200
200
201
201
pem = File . read ( "#{ @tempdir } /gem-public_cert.pem" )
202
202
cert = OpenSSL ::X509 ::Certificate . new ( pem )
@@ -232,8 +232,8 @@ def test_execute_build_bad_passphrase_confirmation
232
232
233
233
end
234
234
235
- refute_path_exists File . join ( @tempdir , 'gem-private_key.pem' )
236
- refute_path_exists File . join ( @tempdir , 'gem-public_cert.pem' )
235
+ assert_path_not_exist File . join ( @tempdir , 'gem-private_key.pem' )
236
+ assert_path_not_exist File . join ( @tempdir , 'gem-public_cert.pem' )
237
237
end
238
238
239
239
def test_execute_build_key
@@ -254,8 +254,8 @@ def test_execute_build_key
254
254
assert_empty output
255
255
assert_empty @ui . error
256
256
257
- assert_path_exists File . join ( @tempdir , 'gem-public_cert.pem' )
258
- refute_path_exists File . join ( @tempdir , 'gem-private_key.pem' )
257
+ assert_path_exist File . join ( @tempdir , 'gem-public_cert.pem' )
258
+ assert_path_not_exist File . join ( @tempdir , 'gem-private_key.pem' )
259
259
end
260
260
261
261
def test_execute_build_encrypted_key
@@ -276,7 +276,7 @@ def test_execute_build_encrypted_key
276
276
assert_empty output
277
277
assert_empty @ui . error
278
278
279
- assert_path_exists File . join ( @tempdir , 'gem-public_cert.pem' )
279
+ assert_path_exist File . join ( @tempdir , 'gem-public_cert.pem' )
280
280
end
281
281
282
282
def test_execute_certificate
@@ -346,7 +346,7 @@ def test_execute_remove
346
346
347
347
cert_path = @trust_dir . cert_path PUBLIC_CERT
348
348
349
- assert_path_exists cert_path
349
+ assert_path_exist cert_path
350
350
351
351
@cmd . handle_options %W[ --remove nobody ]
352
352
@@ -357,7 +357,7 @@ def test_execute_remove
357
357
assert_equal "Removed '/CN=nobody/DC=example'\n " , @ui . output
358
358
assert_equal '' , @ui . error
359
359
360
- refute_path_exists cert_path
360
+ assert_path_not_exist cert_path
361
361
end
362
362
363
363
def test_execute_remove_multiple
@@ -367,8 +367,8 @@ def test_execute_remove_multiple
367
367
public_path = @trust_dir . cert_path PUBLIC_CERT
368
368
alternate_path = @trust_dir . cert_path ALTERNATE_CERT
369
369
370
- assert_path_exists public_path
371
- assert_path_exists alternate_path
370
+ assert_path_exist public_path
371
+ assert_path_exist alternate_path
372
372
373
373
@cmd . handle_options %W[ --remove example ]
374
374
@@ -384,8 +384,8 @@ def test_execute_remove_multiple
384
384
assert_equal expected , @ui . output
385
385
assert_equal '' , @ui . error
386
386
387
- refute_path_exists public_path
388
- refute_path_exists alternate_path
387
+ assert_path_not_exist public_path
388
+ assert_path_not_exist alternate_path
389
389
end
390
390
391
391
def test_execute_remove_twice
@@ -395,8 +395,8 @@ def test_execute_remove_twice
395
395
public_path = @trust_dir . cert_path PUBLIC_CERT
396
396
alternate_path = @trust_dir . cert_path ALTERNATE_CERT
397
397
398
- assert_path_exists public_path
399
- assert_path_exists alternate_path
398
+ assert_path_exist public_path
399
+ assert_path_exist alternate_path
400
400
401
401
@cmd . handle_options %W[ --remove nobody --remove alternate ]
402
402
@@ -412,8 +412,8 @@ def test_execute_remove_twice
412
412
assert_equal expected , @ui . output
413
413
assert_equal '' , @ui . error
414
414
415
- refute_path_exists public_path
416
- refute_path_exists alternate_path
415
+ assert_path_not_exist public_path
416
+ assert_path_not_exist alternate_path
417
417
end
418
418
419
419
def test_execute_sign
0 commit comments