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-1.6.0 test/unit/parameter_matchers/stub_matcher.rb
mocha-1.5.0 test/unit/parameter_matchers/stub_matcher.rb
mocha-1.4.0 test/unit/parameter_matchers/stub_matcher.rb
mocha-1.3.0 test/unit/parameter_matchers/stub_matcher.rb
mocha-1.2.1 test/unit/parameter_matchers/stub_matcher.rb
mocha-1.2.0 test/unit/parameter_matchers/stub_matcher.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/mocha-1.0.0/test/unit/parameter_matchers/stub_matcher.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/mocha-1.0.0/test/unit/parameter_matchers/stub_matcher.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/mocha-1.0.0/test/unit/parameter_matchers/stub_matcher.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/mocha-1.0.0/test/unit/parameter_matchers/stub_matcher.rb
mocha-1.1.0 test/unit/parameter_matchers/stub_matcher.rb
mocha-1.0.0 test/unit/parameter_matchers/stub_matcher.rb
mocha-1.0.0.alpha test/unit/parameter_matchers/stub_matcher.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/mocha-0.14.0/test/unit/parameter_matchers/stub_matcher.rb
challah-1.0.0 vendor/bundle/gems/mocha-0.14.0/test/unit/parameter_matchers/stub_matcher.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/mocha-0.14.0/test/unit/parameter_matchers/stub_matcher.rb
mocha-0.14.0 test/unit/parameter_matchers/stub_matcher.rb
challah-1.0.0.beta3 vendor/bundle/gems/mocha-0.13.3/test/unit/parameter_matchers/stub_matcher.rb
mocha-0.14.0.alpha test/unit/parameter_matchers/stub_matcher.rb
challah-1.0.0.beta2 vendor/bundle/gems/mocha-0.13.3/test/unit/parameter_matchers/stub_matcher.rb