diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-04-05 10:50:15 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-04-05 05:49:25 +0000 |
commit | a464951fc79271a87d09a13f8fd9965dda6e2e61 (patch) | |
tree | fd3610e162e702da9a20a52a14a5f4dc637074a0 /test/rubygems/test_gem_util.rb | |
parent | cbeea5f3e6a5b5112ff5973c02c934ed415e2dc7 (diff) |
[rubygems/rubygems] Unify win_platform? to Gem.win_platform?
https://github.com/rubygems/rubygems/commit/b18a4ef076
Diffstat (limited to 'test/rubygems/test_gem_util.rb')
-rw-r--r-- | test/rubygems/test_gem_util.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_util.rb b/test/rubygems/test_gem_util.rb index 348ecaecfe..7d5b950727 100644 --- a/test/rubygems/test_gem_util.rb +++ b/test/rubygems/test_gem_util.rb @@ -36,7 +36,7 @@ class TestGemUtil < Gem::TestCase end def test_traverse_parents_does_not_crash_on_permissions_error - pend "skipped on MS Windows (chmod has no effect)" if win_platform? || Gem.java_platform? + pend "skipped on MS Windows (chmod has no effect)" if Gem.win_platform? || Gem.java_platform? FileUtils.mkdir_p "d/e/f" # remove 'execute' permission from "e" directory and make it @@ -53,7 +53,7 @@ class TestGemUtil < Gem::TestCase assert_equal File.realpath("../..", @tempdir), paths[3] ensure # restore default permissions, allow the directory to be removed - FileUtils.chmod(0775, "d/e") unless win_platform? || Gem.java_platform? + FileUtils.chmod(0775, "d/e") unless Gem.win_platform? || Gem.java_platform? end def test_glob_files_in_dir |