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

ruby-changes:22777

From: nobu <ko1@a...>
Date: Mon, 27 Feb 2012 10:53:50 +0900 (JST)
Subject: [ruby-changes:22777] nobu:r34826 (trunk): * lib/test/unit.rb (Test::Unit::Runner#puke): skips with no

nobu	2012-02-27 10:53:14 +0900 (Mon, 27 Feb 2012)

  New Revision: 34826

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

  Log:
    * lib/test/unit.rb (Test::Unit::Runner#puke): skips with no
      messages should be trivial.

  Modified files:
    trunk/ChangeLog
    trunk/lib/test/unit.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34825)
+++ ChangeLog	(revision 34826)
@@ -1,3 +1,8 @@
+Mon Feb 27 10:53:12 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/test/unit.rb (Test::Unit::Runner#puke): skips with no
+	  messages should be trivial.
+
 Mon Feb 27 10:50:23 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* io.c, process.c, time.c, ext: use rb_sys_fail_str instead of
Index: lib/test/unit.rb
===================================================================
--- lib/test/unit.rb	(revision 34825)
+++ lib/test/unit.rb	(revision 34826)
@@ -626,6 +626,7 @@
         e = case e
             when MiniTest::Skip then
               @skips += 1
+              return "." if /no message given\z/ =~ e.message
               "Skipped:\n#{meth}(#{klass}) [#{location e}]:\n#{e.message}\n"
             when MiniTest::Assertion then
               @failures += 1

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

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