aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_platform.rb
diff options
context:
space:
mode:
authorayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-05 09:27:06 +0000
committerayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-05 09:27:06 +0000
commitf406e3ac638abd09f4c2c3900d4028f6a8a64071 (patch)
treece0e121753d13b2177a28b9a80656a13114fb833 /test/rubygems/test_gem_platform.rb
parent4750b11cc4b199a88168a548039138c88401e8b6 (diff)
downloadruby-f406e3ac638abd09f4c2c3900d4028f6a8a64071.tar.gz
* test/rubygems/test_gem_installer.rb: fix broken test for r35541.
[ruby-core:44884][Bug #6405] * test/rubygems/test_gem_platform.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_platform.rb')
-rw-r--r--test/rubygems/test_gem_platform.rb70
1 files changed, 35 insertions, 35 deletions
diff --git a/test/rubygems/test_gem_platform.rb b/test/rubygems/test_gem_platform.rb
index f3b94ea83d..b442853d7f 100644
--- a/test/rubygems/test_gem_platform.rb
+++ b/test/rubygems/test_gem_platform.rb
@@ -207,63 +207,63 @@ class TestGemPlatform < Gem::TestCase
def test_equals_tilde
util_set_arch 'i386-mswin32'
- assert_match 'mswin32', Gem::Platform.local
- assert_match 'i386-mswin32', Gem::Platform.local
+ assert('mswin32' =~ Gem::Platform.local)
+ assert('i386-mswin32' =~ Gem::Platform.local)
# oddballs
- assert_match 'i386-mswin32-mq5.3', Gem::Platform.local
- assert_match 'i386-mswin32-mq6', Gem::Platform.local
- refute_match 'win32-1.8.2-VC7', Gem::Platform.local
- refute_match 'win32-1.8.4-VC6', Gem::Platform.local
- refute_match 'win32-source', Gem::Platform.local
- refute_match 'windows', Gem::Platform.local
+ assert('i386-mswin32-mq5.3' =~ Gem::Platform.local)
+ assert('i386-mswin32-mq6' =~ Gem::Platform.local)
+ refute('win32-1.8.2-VC7' =~ Gem::Platform.local)
+ refute('win32-1.8.4-VC6' =~ Gem::Platform.local)
+ refute('win32-source' =~ Gem::Platform.local)
+ refute('windows' =~ Gem::Platform.local)
util_set_arch 'i686-linux'
- assert_match 'i486-linux', Gem::Platform.local
- assert_match 'i586-linux', Gem::Platform.local
- assert_match 'i686-linux', Gem::Platform.local
+ assert('i486-linux' =~ Gem::Platform.local)
+ assert('i586-linux' =~ Gem::Platform.local)
+ assert('i686-linux' =~ Gem::Platform.local)
util_set_arch 'i686-darwin8'
- assert_match 'i686-darwin8.4.1', Gem::Platform.local
- assert_match 'i686-darwin8.8.2', Gem::Platform.local
+ assert('i686-darwin8.4.1' =~ Gem::Platform.local)
+ assert('i686-darwin8.8.2' =~ Gem::Platform.local)
util_set_arch 'java'
- assert_match 'java', Gem::Platform.local
- assert_match 'jruby', Gem::Platform.local
+ assert('java' =~ Gem::Platform.local)
+ assert('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
+ assert('universal-dotnet' =~ Gem::Platform.local)
+ assert('universal-dotnet-2.0' =~ Gem::Platform.local)
+ refute('universal-dotnet-4.0' =~ Gem::Platform.local)
+ assert('dotnet' =~ Gem::Platform.local)
+ assert('dotnet-2.0' =~ Gem::Platform.local)
+ refute('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
+ assert('universal-dotnet' =~ Gem::Platform.local)
+ refute('universal-dotnet-2.0' =~ Gem::Platform.local)
+ assert('universal-dotnet-4.0' =~ Gem::Platform.local)
+ assert('dotnet' =~ Gem::Platform.local)
+ refute('dotnet-2.0' =~ Gem::Platform.local)
+ assert('dotnet-4.0' =~ Gem::Platform.local)
util_set_arch 'universal-macruby-1.0'
- assert_match 'universal-macruby', Gem::Platform.local
- assert_match 'macruby', Gem::Platform.local
- refute_match 'universal-macruby-0.10', Gem::Platform.local
- assert_match 'universal-macruby-1.0', Gem::Platform.local
+ assert('universal-macruby' =~ Gem::Platform.local)
+ assert('macruby' =~ Gem::Platform.local)
+ refute('universal-macruby-0.10' =~ Gem::Platform.local)
+ assert('universal-macruby-1.0' =~ Gem::Platform.local)
util_set_arch 'powerpc-darwin'
- assert_match 'powerpc-darwin', Gem::Platform.local
+ assert('powerpc-darwin' =~ Gem::Platform.local)
util_set_arch 'powerpc-darwin7'
- assert_match 'powerpc-darwin7.9.0', Gem::Platform.local
+ assert('powerpc-darwin7.9.0' =~ Gem::Platform.local)
util_set_arch 'powerpc-darwin8'
- assert_match 'powerpc-darwin8.10.0', Gem::Platform.local
+ assert('powerpc-darwin8.10.0' =~ Gem::Platform.local)
util_set_arch 'sparc-solaris2.8'
- assert_match 'sparc-solaris2.8-mq5.3', Gem::Platform.local
+ assert('sparc-solaris2.8-mq5.3' =~ Gem::Platform.local)
end
end