Flowdock
method

assert_throws

Importance_1
v1_8_6_287 - Show latest stable - 0 notes - 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
Show source
Register or log in to add new notes.