summaryrefslogtreecommitdiff
path: root/test/minitest
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-27 06:43:13 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-27 06:43:13 +0000
commit1a863754faed73a0a9ff1a4ce03bf022e94788c1 (patch)
tree63e8ba1567776007c92987cf16074216ca140dd2 /test/minitest
parenta1cef995414861c8654013464840c2c707fb53a0 (diff)
* test/minitest/test_mini_test.rb
(test_assert_raises_triggered_different): the test failed when a file path in the backtrace contontains something except [\w\/\.], e.g. hyphen, Japanese characters or backslash. * test/minitest/test_mini_test.rb (test_assert_raises_triggered_subclass): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/minitest')
-rw-r--r--test/minitest/test_mini_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/minitest/test_mini_test.rb b/test/minitest/test_mini_test.rb
index 934de53..2f30232 100644
--- a/test/minitest/test_mini_test.rb
+++ b/test/minitest/test_mini_test.rb
@@ -521,7 +521,7 @@ Message: <\"icky\">
FILE:LINE:in `test_assert_raises_triggered_different'
---------------"
- actual = e.message.gsub(/[\w\/\.]+:\d+/, 'FILE:LINE')
+ actual = e.message.gsub(/^.+:\d+/, 'FILE:LINE')
actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION =~ /^1\.9/
assert_equal expected, actual
@@ -553,7 +553,7 @@ Message: <\"E\">
FILE:LINE:in `test_assert_raises_triggered_subclass'
---------------"
- actual = e.message.gsub(/[\w\/\.]+:\d+/, 'FILE:LINE')
+ actual = e.message.gsub(/^.+:\d+/, 'FILE:LINE')
actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION =~ /^1\.9/
assert_equal expected, actual