ruby-changes:23493
From: naruse <ko1@a...>
Date: Sat, 5 May 2012 22:15:44 +0900 (JST)
Subject: [ruby-changes:23493] naruse:r35544 (trunk): Revert r35443.
naruse 2012-05-05 22:15:29 +0900 (Sat, 05 May 2012) New Revision: 35544 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35544 Log: Revert r35443. Revert "* test/rubygems/test_gem_installer.rb: fix broken test for r35541." * r35541 breaks exist tests, it should be a bug unless it is inteneded. there seems no such intention. https://github.com/seattlerb/minitest/commit/68858105b2eb11c85105ffac5f32b662c59397f3 * assert('mswin32' =~ Gem::Platform.local) won't output any useful information when it fails. Modified files: trunk/ChangeLog trunk/test/rubygems/test_gem_installer.rb trunk/test/rubygems/test_gem_platform.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 35543) +++ ChangeLog (revision 35544) @@ -1,9 +1,3 @@ -Sat May 5 18:19:06 2012 Ayumu AIZAWA <ayumu.aizawa@g...> - - * test/rubygems/test_gem_installer.rb: fix broken test for r35541. - [ruby-core:44884][Bug #6405] - * test/rubygems/test_gem_platform.rb: ditto. - Sat May 5 06:43:10 2012 Ryan Davis <ryand-ruby@z...> * lib/minitest/*: Imported minitest 2.12.1 (r7323) Index: test/rubygems/test_gem_installer.rb =================================================================== --- test/rubygems/test_gem_installer.rb (revision 35543) +++ test/rubygems/test_gem_installer.rb (revision 35544) @@ -1217,7 +1217,7 @@ def test_dir util_setup_install - assert_match %r!/installer/gems/a-2$!, @installer.dir + assert_match @installer.dir, %r!/installer/gems/a-2$! end def old_ruby_required Index: test/rubygems/test_gem_platform.rb =================================================================== --- test/rubygems/test_gem_platform.rb (revision 35543) +++ test/rubygems/test_gem_platform.rb (revision 35544) @@ -207,63 +207,63 @@ def test_equals_tilde util_set_arch 'i386-mswin32' - assert('mswin32' =~ Gem::Platform.local) - assert('i386-mswin32' =~ Gem::Platform.local) + assert_match 'mswin32', Gem::Platform.local + assert_match 'i386-mswin32', Gem::Platform.local # oddballs - 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) + 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 util_set_arch 'i686-linux' - assert('i486-linux' =~ Gem::Platform.local) - assert('i586-linux' =~ Gem::Platform.local) - assert('i686-linux' =~ Gem::Platform.local) + assert_match 'i486-linux', Gem::Platform.local + assert_match 'i586-linux', Gem::Platform.local + assert_match 'i686-linux', Gem::Platform.local util_set_arch 'i686-darwin8' - assert('i686-darwin8.4.1' =~ Gem::Platform.local) - assert('i686-darwin8.8.2' =~ Gem::Platform.local) + assert_match 'i686-darwin8.4.1', Gem::Platform.local + assert_match 'i686-darwin8.8.2', Gem::Platform.local util_set_arch 'java' - assert('java' =~ Gem::Platform.local) - assert('jruby' =~ Gem::Platform.local) + assert_match 'java', Gem::Platform.local + assert_match 'jruby', Gem::Platform.local util_set_arch 'universal-dotnet2.0' - 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) + 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('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) + 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 'universal-macruby-1.0' - 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) + 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 util_set_arch 'powerpc-darwin' - assert('powerpc-darwin' =~ Gem::Platform.local) + assert_match 'powerpc-darwin', Gem::Platform.local util_set_arch 'powerpc-darwin7' - assert('powerpc-darwin7.9.0' =~ Gem::Platform.local) + assert_match 'powerpc-darwin7.9.0', Gem::Platform.local util_set_arch 'powerpc-darwin8' - assert('powerpc-darwin8.10.0' =~ Gem::Platform.local) + assert_match 'powerpc-darwin8.10.0', Gem::Platform.local util_set_arch 'sparc-solaris2.8' - assert('sparc-solaris2.8-mq5.3' =~ Gem::Platform.local) + assert_match 'sparc-solaris2.8-mq5.3', Gem::Platform.local end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/