summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_specification.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_specification.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_specification.rb')
-rw-r--r--test/rubygems/test_gem_specification.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index d4656c0d30..6bcc36bd1a 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -1473,7 +1473,7 @@ dependencies: []
skip "extensions don't quite work on jruby" if Gem.java_platform?
ext_spec
- refute_path_exists @ext.extension_dir, 'sanity check'
+ assert_path_not_exist @ext.extension_dir, 'sanity check'
refute_empty @ext.extensions, 'sanity check'
extconf_rb = File.join @ext.gem_dir, @ext.extensions.first
@@ -1491,7 +1491,7 @@ dependencies: []
@ext.build_extensions
- assert_path_exists @ext.extension_dir
+ assert_path_exist @ext.extension_dir
end
def test_default_spec_stub_is_marked_default
@@ -1520,7 +1520,7 @@ dependencies: []
@ext.build_extensions
gem_make_out = File.join @ext.extension_dir, 'gem_make.out'
- refute_path_exists gem_make_out
+ assert_path_not_exist gem_make_out
end
def test_build_extensions_default_gem
@@ -1541,7 +1541,7 @@ dependencies: []
spec.build_extensions
- refute_path_exists spec.extension_dir
+ assert_path_not_exist spec.extension_dir
end
def test_build_extensions_error
@@ -1582,7 +1582,7 @@ dependencies: []
FileUtils.chmod 0555, File.join(@ext.base_dir, 'extensions')
@ext.build_extensions
- refute_path_exists @ext.extension_dir
+ assert_path_not_exist @ext.extension_dir
ensure
unless ($DEBUG or win_platform? or Process.uid.zero? or Gem.java_platform?)
FileUtils.chmod 0755, File.join(@ext.base_dir, 'extensions')
@@ -1616,18 +1616,18 @@ dependencies: []
@ext.build_extensions
gem_make_out = File.join @ext.extension_dir, 'gem_make.out'
- refute_path_exists gem_make_out
+ assert_path_not_exist gem_make_out
ensure
FileUtils.chmod 0755, @gemhome
end
def test_build_extensions_none
- refute_path_exists @a1.extension_dir, 'sanity check'
+ assert_path_not_exist @a1.extension_dir, 'sanity check'
assert_empty @a1.extensions, 'sanity check'
@a1.build_extensions
- refute_path_exists @a1.extension_dir
+ assert_path_not_exist @a1.extension_dir
end
def test_build_extensions_preview
@@ -1654,7 +1654,7 @@ dependencies: []
@ext.build_extensions
gem_make_out = File.join @ext.extension_dir, 'gem_make.out'
- assert_path_exists gem_make_out
+ assert_path_exist gem_make_out
end
def test_contains_requirable_file_eh