diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-07 04:20:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-07 04:20:51 +0000 |
commit | e04b95c0d59a297fd0619f22f10848e08d762798 (patch) | |
tree | 64013fa94bc9325ec1115a7370c6b792f8158dd1 /test | |
parent | 0215df7ea30f5a4ad9bdf212bb31ee00d6d8877f (diff) | |
download | ruby-e04b95c0d59a297fd0619f22f10848e08d762798.tar.gz ruby-e04b95c0d59a297fd0619f22f10848e08d762798.tar.xz ruby-e04b95c0d59a297fd0619f22f10848e08d762798.zip |
* test/rdoc/test_rdoc_markup_to_html_crossref.rb (verify_convert):
appends backtrace.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/rdoc/test_rdoc_markup_to_html_crossref.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/rdoc/test_rdoc_markup_to_html_crossref.rb b/test/rdoc/test_rdoc_markup_to_html_crossref.rb index ccc5e9579..f3a64f203 100644 --- a/test/rdoc/test_rdoc_markup_to_html_crossref.rb +++ b/test/rdoc/test_rdoc_markup_to_html_crossref.rb @@ -84,7 +84,12 @@ class TestRDocMarkupToHtmlCrossref < MiniTest::Unit::TestCase actual_expected_result.gsub!(/\n/, " ") result.gsub!(/\n/, " ") - assert_equal actual_expected_result, result + begin + assert_equal actual_expected_result, result + rescue MiniTest::Assertion => e + bt = caller(2) + raise e, [e.message, *bt.grep(/\A#{Regexp.quote(__FILE__)}:/o)].join("\n"), bt + end end # |