summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 04:37:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 04:37:13 +0000
commit068f312a7c642a1b6c358c17ef83421756568545 (patch)
tree11ce5c67053f28051a34523281a8ad2f5b670d6e /test/lib
parenta2845a44ffd3c9ddef704dac1ba1fa2766a64555 (diff)
use assert_raise
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/test/unit/assertions.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb
index a317a85..ca15bef 100644
--- a/test/lib/test/unit/assertions.rb
+++ b/test/lib/test/unit/assertions.rb
@@ -95,6 +95,10 @@ module Test
flunk(message(msg) {"#{mu_pp(exp)} expected but nothing was raised"})
end
+ def assert_raises(*exp, &b)
+ raise NoMethodError, "use assert_raise", caller
+ end
+
# :call-seq:
# assert_raise_with_message(exception, expected, msg = nil, &block)
#