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

Version Path
muack-1.2.0 lib/muack/error.rb
muack-1.1.2 lib/muack/error.rb
muack-1.1.1 lib/muack/error.rb
muack-1.1.0 lib/muack/error.rb
muack-1.0.4 lib/muack/error.rb
muack-1.0.3 lib/muack/error.rb
muack-1.0.2 lib/muack/error.rb
muack-1.0.1 lib/muack/error.rb
muack-1.0.0 lib/muack/error.rb
muack-0.7.3 lib/muack/error.rb
muack-0.7.2 lib/muack/error.rb
muack-0.7.1 lib/muack/error.rb
muack-0.7.0 lib/muack/error.rb