summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-03 12:15:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-03 12:15:31 +0000
commite0d6328ff474a7ff7ab3b3dbd81ab4406e3a0fce (patch)
tree53b1fe12ad3758ad0454521bde9da7ca41264749
parentce58200fb75655f87fba184f181a93a8165d2c62 (diff)
test_timeout.rb: exact messages
* test/test_timeout.rb (test_rescue_exit, test_custom_exception): assert with exact messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/test_timeout.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_timeout.rb b/test/test_timeout.rb
index 88a9b82..911ad8c 100644
--- a/test/test_timeout.rb
+++ b/test/test_timeout.rb
@@ -49,7 +49,7 @@ class TestTimeout < Test::Unit::TestCase
end
end
end
- assert_raise_with_message(exc, /execution expired/) {raise e if e}
+ assert_raise_with_message(exc, 'execution expired') {raise e if e}
end
def test_custom_exception
@@ -60,7 +60,7 @@ class TestTimeout < Test::Unit::TestCase
assert_nothing_raised(ArgumentError, bug9354) do
assert_equal(:ok, Timeout.timeout(100, err) {:ok})
end
- assert_raise_with_message(err, /execution expired/) do
+ assert_raise_with_message(err, 'execution expired') do
Timeout.timeout 0.01, err do
sleep 3
end