mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
[rubygems/rubygems] Unify java_platform? to Gem.java_platform?
7f27ab32b8
This commit is contained in:
parent
bf8afe434f
commit
cbeea5f3e6
7 changed files with 11 additions and 25 deletions
|
@ -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? || java_platform?
|
||||
pend "skipped on MS Windows (chmod has no effect)" if 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? || java_platform?
|
||||
FileUtils.chmod(0775, "d/e") unless win_platform? || Gem.java_platform?
|
||||
end
|
||||
|
||||
def test_glob_files_in_dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue