class Mocha::ExceptionRaiser
def evaluate(invocation)
def evaluate(invocation) invocation.raised(@exception) raise @exception, @exception.to_s if @exception.is_a?(Module) && (@exception < Interrupt) raise @exception, @message if @message raise @exception end
def initialize(exception, message)
def initialize(exception, message) @exception = exception @message = message end