method

assert_throws

v1_8_7_72 - Show latest stable - Class: Test::Unit::Assertions
assert_throws(expected_symbol, message="", &proc)
public

Passes if the block throws expected_symbol

Example:

  assert_throws :done do
    throw :done
  end