diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-25 10:13:50 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-25 10:13:50 +0000 |
commit | 6c1b339b1b62084c37a20b2dbaae1c512de0769b (patch) | |
tree | 3bfca425683a94d1360ecdf5857d741b8eaac213 /test/rubygems/test_gem_platform.rb | |
parent | 4520ae9543a0d2791dd14772ebd57cff729e3b79 (diff) | |
download | ruby-6c1b339b1b62084c37a20b2dbaae1c512de0769b.tar.gz ruby-6c1b339b1b62084c37a20b2dbaae1c512de0769b.tar.xz ruby-6c1b339b1b62084c37a20b2dbaae1c512de0769b.zip |
Update to RubyGems 1.3.0 r1891
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_platform.rb')
-rw-r--r-- | test/rubygems/test_gem_platform.rb | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/test/rubygems/test_gem_platform.rb b/test/rubygems/test_gem_platform.rb index 648c2a9f3..362a36626 100644 --- a/test/rubygems/test_gem_platform.rb +++ b/test/rubygems/test_gem_platform.rb @@ -5,19 +5,6 @@ require 'rbconfig' class TestGemPlatform < RubyGemTestCase - def test_self_const_missing - consts = [:DARWIN, :LINUX_586, :MSWIN32, :PPC_DARWIN, :WIN32, :X86_LINUX] - - consts.each do |const| - e = assert_raise NameError do - Gem::Platform.const_missing const - end - - assert_equal "#{const} has been removed, use CURRENT instead", - e.message - end - end - def test_self_local util_set_arch 'i686-darwin8.10.1' @@ -105,6 +92,12 @@ class TestGemPlatform < RubyGemTestCase platform = Gem::Platform.new 'i386-mswin32-80' assert_equal expected, platform.to_a, 'i386-mswin32-80' + + expected = ['x86', 'solaris', '2.10'] + + platform = Gem::Platform.new 'i386-solaris-2.10' + + assert_equal expected, platform.to_a, 'i386-solaris-2.10' end def test_initialize_mswin32_vc6 |