From e04b95c0d59a297fd0619f22f10848e08d762798 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 7 Mar 2009 04:20:51 +0000 Subject: * 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 --- test/rdoc/test_rdoc_markup_to_html_crossref.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test') 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 # -- cgit