summaryrefslogtreecommitdiff
path: root/lib/test/unit
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-10 04:04:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-10 04:04:41 +0000
commit3bc5b309bed998e2a8d59f0ecae9b1e342763802 (patch)
tree2962d23c490059c09e4a2b40edf93ca11b2e40ed /lib/test/unit
parentc95cbe809e229dc6778746e275462b8e058b25b1 (diff)
* 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
Diffstat (limited to 'lib/test/unit')
-rw-r--r--lib/test/unit/assertions.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb
index db0679cafb..4752943aeb 100644
--- a/lib/test/unit/assertions.rb
+++ b/lib/test/unit/assertions.rb
@@ -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