From ba45b0fe487dd1572e30590e76ee8a49394d9f8d Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 7 Mar 2009 04:20:51 +0000 Subject: [PATCH] * test/rdoc/test_rdoc_markup_to_html_crossref.rb (verify_convert): appends backtrace. git-svn-id: svn+ssh://ci.ruby-lang.org/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(-) diff --git a/test/rdoc/test_rdoc_markup_to_html_crossref.rb b/test/rdoc/test_rdoc_markup_to_html_crossref.rb index ccc5e95799..f3a64f203b 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 #