summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_fetch_command.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_commands_fetch_command.rb
parent81d793a9216303f70143b13a88c924c22ce4af6d (diff)
[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
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4491
Diffstat (limited to 'test/rubygems/test_gem_commands_fetch_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_fetch_command.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/rubygems/test_gem_commands_fetch_command.rb b/test/rubygems/test_gem_commands_fetch_command.rb
index dfe0d91726..9a81e8898e 100644
--- a/test/rubygems/test_gem_commands_fetch_command.rb
+++ b/test/rubygems/test_gem_commands_fetch_command.rb
@@ -16,7 +16,7 @@ class TestGemCommandsFetchCommand < Gem::TestCase
fetcher.gem 'a', 2
end
- refute_path_exists File.join(@tempdir, 'cache'), 'sanity check'
+ assert_path_not_exist File.join(@tempdir, 'cache'), 'sanity check'
@cmd.options[:args] = %w[a]
@@ -28,9 +28,9 @@ class TestGemCommandsFetchCommand < Gem::TestCase
a2 = specs['a-2']
- assert_path_exists(File.join(@tempdir, a2.file_name),
+ assert_path_exist(File.join(@tempdir, a2.file_name),
"#{a2.full_name} not fetched")
- refute_path_exists File.join(@tempdir, 'cache'),
+ assert_path_not_exist File.join(@tempdir, 'cache'),
'gem repository directories must not be created'
end
@@ -40,7 +40,7 @@ class TestGemCommandsFetchCommand < Gem::TestCase
fetcher.gem 'a', 2
end
- refute_path_exists File.join(@tempdir, 'cache'), 'sanity check'
+ assert_path_not_exist File.join(@tempdir, 'cache'), 'sanity check'
@cmd.options[:args] = %w[a]
@cmd.options[:version] = req('>= 0.1')
@@ -52,9 +52,9 @@ class TestGemCommandsFetchCommand < Gem::TestCase
end
a2 = specs['a-2']
- assert_path_exists(File.join(@tempdir, a2.file_name),
+ assert_path_exist(File.join(@tempdir, a2.file_name),
"#{a2.full_name} not fetched")
- refute_path_exists File.join(@tempdir, 'cache'),
+ assert_path_not_exist File.join(@tempdir, 'cache'),
'gem repository directories must not be created'
end
@@ -75,7 +75,7 @@ class TestGemCommandsFetchCommand < Gem::TestCase
a2 = specs['a-2']
- assert_path_exists(File.join(@tempdir, a2.file_name),
+ assert_path_exist(File.join(@tempdir, a2.file_name),
"#{a2.full_name} not fetched")
end
@@ -97,7 +97,7 @@ class TestGemCommandsFetchCommand < Gem::TestCase
a2_pre = specs['a-2.a']
- assert_path_exists(File.join(@tempdir, a2_pre.file_name),
+ assert_path_exist(File.join(@tempdir, a2_pre.file_name),
"#{a2_pre.full_name} not fetched")
end
@@ -118,7 +118,7 @@ class TestGemCommandsFetchCommand < Gem::TestCase
a1 = specs['a-1']
- assert_path_exists(File.join(@tempdir, a1.file_name),
+ assert_path_exist(File.join(@tempdir, a1.file_name),
"#{a1.full_name} not fetched")
end
end