summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_pristine_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2020-05-25 21:05:45 +0900
committerHiroshi SHIBATA <[email protected]>2021-05-12 17:24:43 +0900
commit3948be350312b908ea3ecf32ecf1adf420fe74ca (patch)
tree8f01de8e25e201e16a4f15b1124f7251a892d0a4 /test/rubygems/test_gem_commands_pristine_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_pristine_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_pristine_command.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/rubygems/test_gem_commands_pristine_command.rb b/test/rubygems/test_gem_commands_pristine_command.rb
index 59f34af249..5f869c0266 100644
--- a/test/rubygems/test_gem_commands_pristine_command.rb
+++ b/test/rubygems/test_gem_commands_pristine_command.rb
@@ -155,7 +155,7 @@ class TestGemCommandsPristineCommand < Gem::TestCase
@cmd.execute
end
- assert_path_exists gem_exec
+ assert_path_exist gem_exec
ruby_exec = sprintf Gem.default_exec_format, 'ruby'
@@ -356,10 +356,10 @@ class TestGemCommandsPristineCommand < Gem::TestCase
assert_equal "Restored #{b.full_name}", out.shift
assert_empty out, out.inspect
- assert_path_exists File.join(@gemhome, "gems", 'a-2')
- refute_path_exists File.join(gemhome2, "gems", 'a-2')
- assert_path_exists File.join(gemhome2, "gems", 'b-2')
- refute_path_exists File.join(@gemhome, "gems", 'b-2')
+ assert_path_exist File.join(@gemhome, "gems", 'a-2')
+ assert_path_not_exist File.join(gemhome2, "gems", 'a-2')
+ assert_path_exist File.join(gemhome2, "gems", 'b-2')
+ assert_path_not_exist File.join(@gemhome, "gems", 'b-2')
end
def test_execute_missing_cache_gem
@@ -434,15 +434,15 @@ class TestGemCommandsPristineCommand < Gem::TestCase
assert_empty out, out.inspect
assert_empty @ui.error
- assert_path_exists File.join(@gemhome, "cache", 'a-1.gem')
- refute_path_exists File.join(gemhome2, "cache", 'a-2.gem')
- assert_path_exists File.join(@gemhome, "gems", 'a-1')
- refute_path_exists File.join(gemhome2, "gems", 'a-1')
+ assert_path_exist File.join(@gemhome, "cache", 'a-1.gem')
+ assert_path_not_exist File.join(gemhome2, "cache", 'a-2.gem')
+ assert_path_exist File.join(@gemhome, "gems", 'a-1')
+ assert_path_not_exist File.join(gemhome2, "gems", 'a-1')
- assert_path_exists File.join(gemhome2, "cache", 'b-1.gem')
- refute_path_exists File.join(@gemhome, "cache", 'b-2.gem')
- assert_path_exists File.join(gemhome2, "gems", 'b-1')
- refute_path_exists File.join(@gemhome, "gems", 'b-1')
+ assert_path_exist File.join(gemhome2, "cache", 'b-1.gem')
+ assert_path_not_exist File.join(@gemhome, "cache", 'b-2.gem')
+ assert_path_exist File.join(gemhome2, "gems", 'b-1')
+ assert_path_not_exist File.join(@gemhome, "gems", 'b-1')
end
def test_execute_no_gem