[前][次][番号順一覧][スレッド一覧]

ruby-changes:11198

From: nobu <ko1@a...>
Date: Sat, 7 Mar 2009 13:20:56 +0900 (JST)
Subject: [ruby-changes:11198] Ruby:r22806 (trunk): * test/rdoc/test_rdoc_markup_to_html_crossref.rb (verify_convert):

nobu	2009-03-07 13:20:51 +0900 (Sat, 07 Mar 2009)

  New Revision: 22806

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22806

  Log:
    * test/rdoc/test_rdoc_markup_to_html_crossref.rb (verify_convert):
      appends backtrace.

  Modified files:
    trunk/test/rdoc/test_rdoc_markup_to_html_crossref.rb

Index: test/rdoc/test_rdoc_markup_to_html_crossref.rb
===================================================================
--- test/rdoc/test_rdoc_markup_to_html_crossref.rb	(revision 22805)
+++ test/rdoc/test_rdoc_markup_to_html_crossref.rb	(revision 22806)
@@ -84,7 +84,12 @@
     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
 
   #

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]