summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 12:59:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 12:59:09 +0000
commit1dcc985092bffe89c80b59436e2b2b64c49948ed (patch)
tree4508369a85ae96bf255c7dbbc3afff521604ac02
parent19737494b9f67f935acd5ec141c5137b8d20c3f3 (diff)
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
-rw-r--r--bootstraptest/test_thread.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb
index c2b2b8ce9b..7baa806a45 100644
--- a/bootstraptest/test_thread.rb
+++ b/bootstraptest/test_thread.rb
@@ -22,7 +22,7 @@ begin
}
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{