method

assert_raise

v1_9_2_180 - Show latest stable - Class: Test::Unit::Assertions
assert_raise(*args, &b)
public

No documentation available.

# File lib/test/unit/assertions.rb, line 22
      def assert_raise(*args, &b)
        assert_raises(*args, &b)
      end

1Note

Typo

olitreadwell ยท Apr 2, 2015

"Acceptable exception types maye be given as optional arguments. If the last argument is a String, it will be used as the error message."

"Acceptable exception types may be given as optional arguments. If the last argument is a String, it will be used as the error message."