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/helper.rb | |
parent | cbeea5f3e6a5b5112ff5973c02c934ed415e2dc7 (diff) | |
download | ruby-a464951fc79271a87d09a13f8fd9965dda6e2e61.tar.gz |
[rubygems/rubygems] Unify win_platform? to Gem.win_platform?
https://github.com/rubygems/rubygems/commit/b18a4ef076
Diffstat (limited to 'test/rubygems/helper.rb')
-rw-r--r-- | test/rubygems/helper.rb | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb index a7f7bafc24..4629a74040 100644 --- a/test/rubygems/helper.rb +++ b/test/rubygems/helper.rb @@ -414,7 +414,7 @@ class Gem::TestCase < Test::Unit::TestCase @orig_arch = RbConfig::CONFIG["arch"] - if win_platform? + if Gem.win_platform? util_set_arch "i386-mswin32" else util_set_arch "i686-darwin8.10.1" @@ -1132,20 +1132,6 @@ Also, a list: end ## - # Is this test being run on a Windows platform? - - def self.win_platform? - Gem.win_platform? - end - - ## - # see ::win_platform? - - def win_platform? - self.class.win_platform? - end - - ## # Returns whether or not we're on a version of Ruby built with VC++ (or # Borland) versus Cygwin, Mingw, etc. |