aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_platform.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 00:54:12 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 00:54:12 +0000
commite00d5437d1453f0ec4fbc980a81c15630624eb71 (patch)
tree07c1340a8c4ea3d0b7ae2f209866af85de089f27 /test/rubygems/test_gem_platform.rb
parentf363bbdf1042562e40aaccbd1bdd7b783c096ff0 (diff)
downloadruby-e00d5437d1453f0ec4fbc980a81c15630624eb71.tar.gz
* lib/rubygems: Update to RubyGems HEAD(60d7972).
this version contains pull requests number of #1343, #1356, #1357, #1363 at https://github.com/rubygems/rubygems/pulls * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_platform.rb')
-rw-r--r--test/rubygems/test_gem_platform.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_platform.rb b/test/rubygems/test_gem_platform.rb
index 17577dc744..164977224c 100644
--- a/test/rubygems/test_gem_platform.rb
+++ b/test/rubygems/test_gem_platform.rb
@@ -190,6 +190,17 @@ class TestGemPlatform < Gem::TestCase
assert((x86_darwin8 === Gem::Platform.local), 'universal =~ x86')
end
+ def test_nil_cpu_arch_is_treated_as_universal
+ with_nil_arch = Gem::Platform.new [nil, 'mingw32']
+ with_uni_arch = Gem::Platform.new ['universal', 'mingw32']
+ with_x86_arch = Gem::Platform.new ['x86', 'mingw32']
+
+ assert((with_nil_arch === with_uni_arch), 'nil =~ universal')
+ assert((with_uni_arch === with_nil_arch), 'universal =~ nil')
+ assert((with_nil_arch === with_x86_arch), 'nil =~ x86')
+ assert((with_x86_arch === with_nil_arch), 'x86 =~ nil')
+ end
+
def test_equals3_cpu_arm
arm = Gem::Platform.new 'arm-linux'
armv5 = Gem::Platform.new 'armv5-linux'