diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-27 01:53:14 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-27 01:53:14 +0000 |
| commit | 90080e3a2efa4443fce2c3f8201fbc62bb356a3c (patch) | |
| tree | 5ead495833075c77f4e8cce812efd2701b955a66 | |
| parent | 80429eed638c36baa3574704b1b567aa7acb4fa6 (diff) | |
* 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
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/test/unit.rb | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Mon Feb 27 10:53:12 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * 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@ruby-lang.org> * 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 |
