Sha256: afb517ab22e4e4b2512fd10da8e060df4de7daa3130807770a80f822ae8c3e51
Contents?: true
Size: 386 Bytes
Versions: 36
Compression:
Stored size: 386 Bytes
Contents
module Mocha class ExceptionRaiser def initialize(exception, message) @exception = exception @message = message end 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 end end
Version data entries
36 entries across 36 versions & 2 rubygems