mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
a1cef99541
commit
1a863754fa
2 changed files with 12 additions and 2 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
Mon Oct 27 15:38:38 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* 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.
|
||||
|
||||
Mon Oct 27 15:32:08 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* test/minitest/test_mini_test.rb: fixed that r19958 made
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue