1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix matching

* bootstraptest/test_thread.rb: String#=~ does not accept String.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-12-05 12:59:09 +00:00
parent 19737494b9
commit 1dcc985092

View file

@ -22,7 +22,7 @@ begin
} }
v == 20100 ? :ok : v v == 20100 ? :ok : v
rescue ThreadError => e rescue ThreadError => e
:ok if e.message =~ "can't create Thread" :ok if /can't create Thread/ =~ e.message
end end
} }
assert_equal %q{5000}, %q{ assert_equal %q{5000}, %q{