assert_nothing_thrown(msg=nil) public

Fails if the given block uses a call to Kernel#throw.

An optional failure message may be provided as the final argument.

assert_nothing_thrown "Something was thrown!" do
  throw :problem?
end
Show source
Register or log in to add new notes.