diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-05 10:50:15 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-04-05 05:49:25 +0000 |
commit | a464951fc79271a87d09a13f8fd9965dda6e2e61 (patch) | |
tree | fd3610e162e702da9a20a52a14a5f4dc637074a0 /test/rubygems/test_gem_config_file.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_config_file.rb')
-rw-r--r-- | test/rubygems/test_gem_config_file.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_config_file.rb b/test/rubygems/test_gem_config_file.rb index d6c8d220e3..c65b18af90 100644 --- a/test/rubygems/test_gem_config_file.rb +++ b/test/rubygems/test_gem_config_file.rb @@ -196,7 +196,7 @@ class TestGemConfigFile < Gem::TestCase end def test_check_credentials_permissions - pend "chmod not supported" if win_platform? + pend "chmod not supported" if Gem.win_platform? @cfg.rubygems_api_key = "x" @@ -335,7 +335,7 @@ if you believe they were disclosed to a third party. end def test_load_api_keys_bad_permission - pend "chmod not supported" if win_platform? + pend "chmod not supported" if Gem.win_platform? @cfg.rubygems_api_key = "x" @@ -369,7 +369,7 @@ if you believe they were disclosed to a third party. assert_equal expected, load_yaml_file(@cfg.credentials_path) - unless win_platform? + unless Gem.win_platform? stat = File.stat @cfg.credentials_path assert_equal 0600, stat.mode & 0600 @@ -377,7 +377,7 @@ if you believe they were disclosed to a third party. end def test_rubygems_api_key_equals_bad_permission - pend "chmod not supported" if win_platform? + pend "chmod not supported" if Gem.win_platform? @cfg.rubygems_api_key = "x" |