mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit/assertions.rb (Test::Unit::Assertions#skip): reason to
skip should be explained. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c95cbe809e
commit
3bc5b309be
2 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
|||
Fri Jun 10 13:01:24 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Fri Jun 10 13:04:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/test/unit/assertions.rb (Test::Unit::Assertions#skip): reason to
|
||||
skip should be explained.
|
||||
|
||||
* test/ruby/test_module.rb (TestModule#remove_rake_mixins): remove all
|
||||
module related to Rake.
|
||||
|
|
|
@ -24,6 +24,11 @@ module Test
|
|||
super
|
||||
end
|
||||
|
||||
def skip(msg = nil, bt = caller)
|
||||
raise ArgumentError, "no reason to skip" unless msg
|
||||
super
|
||||
end
|
||||
|
||||
def assert_block(*msgs)
|
||||
assert yield, *msgs
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue