ruby-changes:31937
From: nobu <ko1@a...>
Date: Thu, 5 Dec 2013 21:59:16 +0900 (JST)
Subject: [ruby-changes:31937] nobu:r44016 (trunk): fix matching
nobu 2013-12-05 21:59:09 +0900 (Thu, 05 Dec 2013) New Revision: 44016 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44016 Log: fix matching * bootstraptest/test_thread.rb: String#=~ does not accept String. Modified files: trunk/bootstraptest/test_thread.rb Index: bootstraptest/test_thread.rb =================================================================== --- bootstraptest/test_thread.rb (revision 44015) +++ bootstraptest/test_thread.rb (revision 44016) @@ -22,7 +22,7 @@ begin https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_thread.rb#L22 } v == 20100 ? :ok : v rescue ThreadError => e - :ok if e.message =~ "can't create Thread" + :ok if /can't create Thread/ =~ e.message end } assert_equal %q{5000}, %q{ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/