From 90080e3a2efa4443fce2c3f8201fbc62bb356a3c Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 27 Feb 2012 01:53:14 +0000 Subject: [PATCH] * lib/test/unit.rb (Test::Unit::Runner#puke): skips with no messages should be trivial. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/test/unit.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index b398c61bec..30ea935cd6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 27 10:53:12 2012 Nobuyoshi Nakada + + * lib/test/unit.rb (Test::Unit::Runner#puke): skips with no + messages should be trivial. + Mon Feb 27 10:50:23 2012 Nobuyoshi Nakada * io.c, process.c, time.c, ext: use rb_sys_fail_str instead of diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 16f50c64b2..89cb93a678 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -626,6 +626,7 @@ module Test 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