Sha256: d85abbdcc4b1da54da2a517c2b565d92e9814eeaf4743e5a38f6d699ded72abd
Contents?: true
Size: 548 Bytes
Versions: 13
Compression:
Stored size: 548 Bytes
Contents
module Muack Error = Class.new(NotImplementedError) class CannotFindInjectionName < Error def initialize t, msg super "\nCan't find a new method name for :#{msg}, tried #{t} times." \ "\nSet ENV['MUACK_RECURSION_LEVEL'] to raise this limit." end end class StubHasNoTimes < Error def initialize obj, defi, times super "\nUse mocks if you want to specify times.\ne.g. " \ "mock(#{obj.inspect}).#{defi.msg}(#{defi.args.join(', ')})" \ ".times(#{times})" end end end
Version data entries
13 entries across 13 versions & 1 rubygems