Sha256: af225fda936c9afba2e3a03179c781b87571b2bbc8a74d323d51a925daa99332

Contents?: true

Size: 353 Bytes

Versions: 61

Compression:

Stored size: 353 Bytes

Contents

module Stub

  class Matcher

    attr_accessor :value

    def initialize(matches)
      @matches = matches
    end

    def matches?(available_parameters)
      value = available_parameters.shift
      @value = value
      @matches
    end

    def mocha_inspect
      "matcher(#{@matches})"
    end

    def to_matcher
      self
    end

  end

end

Version data entries

61 entries across 50 versions & 5 rubygems

Version Path
mocha-0.11.0 test/unit/parameter_matchers/stub_matcher.rb