seattlerb/minitest — Issue #99: Allow regexp for assert_raises
Author: mperham
Created: 2012-02-26 20:37:46+00:00
State: open

I'd like an optional final regexp parameter to assert_raises so I can assert the message contents of the raised exception:

assert_raises ArgumentError, /Unsupported option/ do
dc = Dalli::Client.new('localhost', :badopt => true)
end