aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_security_trust_dir.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-25 21:05:45 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-12 17:24:43 +0900
commit3948be350312b908ea3ecf32ecf1adf420fe74ca (patch)
tree8f01de8e25e201e16a4f15b1124f7251a892d0a4 /test/rubygems/test_gem_security_trust_dir.rb
parent81d793a9216303f70143b13a88c924c22ce4af6d (diff)
downloadruby-3948be350312b908ea3ecf32ecf1adf420fe74ca.tar.gz
[rubygems/rubygems] Use assert_path_exist and assert_path_not_exist instead of assert_path_exists and refute_path_exists
https://github.com/rubygems/rubygems/commit/a7c93558c3
Diffstat (limited to 'test/rubygems/test_gem_security_trust_dir.rb')
-rw-r--r--test/rubygems/test_gem_security_trust_dir.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_security_trust_dir.rb b/test/rubygems/test_gem_security_trust_dir.rb
index 201de9d36b..057557ee96 100644
--- a/test/rubygems/test_gem_security_trust_dir.rb
+++ b/test/rubygems/test_gem_security_trust_dir.rb
@@ -53,7 +53,7 @@ class TestGemSecurityTrustDir < Gem::TestCase
trusted = @trust_dir.cert_path PUBLIC_CERT
- assert_path_exists trusted
+ assert_path_exist trusted
mask = 0100600 & (~File.umask)
@@ -63,11 +63,11 @@ class TestGemSecurityTrustDir < Gem::TestCase
end
def test_verify
- refute_path_exists @dest_dir
+ assert_path_not_exist @dest_dir
@trust_dir.verify
- assert_path_exists @dest_dir
+ assert_path_exist @dest_dir
mask = 040700 & (~File.umask)
mask |= 0200000 if /aix/ =~ RUBY_PLATFORM