aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_platform.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-22 08:24:42 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-22 08:24:42 +0000
commit372dcece3f69989d133f720468f1e24aa1133cda (patch)
treec173ca48a23ce18afa44feb15bf68d2dd14ac619 /test/rubygems/test_gem_platform.rb
parentd0e5a34ac7c34e70c145024a0fed8f6042814f29 (diff)
downloadruby-372dcece3f69989d133f720468f1e24aa1133cda.tar.gz
Update to RubyGems 1.3.7.pre.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_platform.rb')
-rw-r--r--test/rubygems/test_gem_platform.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_platform.rb b/test/rubygems/test_gem_platform.rb
index 60ceb3141b..686493511f 100644
--- a/test/rubygems/test_gem_platform.rb
+++ b/test/rubygems/test_gem_platform.rb
@@ -30,6 +30,9 @@ class TestGemPlatform < RubyGemTestCase
'hppa2.0w-hpux11.31' => ['hppa2.0w', 'hpux', '11'],
'java' => [nil, 'java', nil],
'jruby' => [nil, 'java', nil],
+ 'universal-dotnet' => ['universal', 'dotnet', nil],
+ 'universal-dotnet2.0' => ['universal', 'dotnet', '2.0'],
+ 'universal-dotnet4.0' => ['universal', 'dotnet', '4.0'],
'powerpc-aix5.3.0.0' => ['powerpc', 'aix', '5'],
'powerpc-darwin7' => ['powerpc', 'darwin', '7'],
'powerpc-darwin8' => ['powerpc', 'darwin', '8'],
@@ -227,6 +230,22 @@ class TestGemPlatform < RubyGemTestCase
util_set_arch 'java'
assert_match 'java', Gem::Platform.local
assert_match 'jruby', Gem::Platform.local
+
+ util_set_arch 'universal-dotnet2.0'
+ assert_match 'universal-dotnet', Gem::Platform.local
+ assert_match 'universal-dotnet-2.0', Gem::Platform.local
+ refute_match 'universal-dotnet-4.0', Gem::Platform.local
+ assert_match 'dotnet', Gem::Platform.local
+ assert_match 'dotnet-2.0', Gem::Platform.local
+ refute_match 'dotnet-4.0', Gem::Platform.local
+
+ util_set_arch 'universal-dotnet4.0'
+ assert_match 'universal-dotnet', Gem::Platform.local
+ refute_match 'universal-dotnet-2.0', Gem::Platform.local
+ assert_match 'universal-dotnet-4.0', Gem::Platform.local
+ assert_match 'dotnet', Gem::Platform.local
+ refute_match 'dotnet-2.0', Gem::Platform.local
+ assert_match 'dotnet-4.0', Gem::Platform.local
util_set_arch 'powerpc-darwin'
assert_match 'powerpc-darwin', Gem::Platform.local