Sha256: 3b5ab0c347acfc847a404c0d9d1ef3280dc9e797a755ff14b0097c7b50c71972

Contents?: true

Size: 346 Bytes

Versions: 33

Compression:

Stored size: 346 Bytes

Contents

module Mocha

  class MethodMatcher

    attr_reader :expected_method_name

    def initialize(expected_method_name)
      @expected_method_name = expected_method_name
    end

    def match?(actual_method_name)
      @expected_method_name == actual_method_name
    end

    def mocha_inspect
      "#{@expected_method_name}"
    end

  end

end

Version data entries

33 entries across 28 versions & 3 rubygems

Version Path
mocha-0.12.10 lib/mocha/method_matcher.rb
mocha-0.12.9 lib/mocha/method_matcher.rb
mocha-0.12.8 lib/mocha/method_matcher.rb
challah-rolls-0.2.0 vendor/bundle/gems/mocha-0.12.2/lib/mocha/method_matcher.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/mocha-0.12.3/lib/mocha/method_matcher.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/mocha-0.12.2/lib/mocha/method_matcher.rb
challah-rolls-0.2.0 vendor/bundle/gems/mocha-0.12.3/lib/mocha/method_matcher.rb
challah-0.8.3 vendor/bundle/gems/mocha-0.12.3/lib/mocha/method_matcher.rb
mocha-0.12.7 lib/mocha/method_matcher.rb
mocha-0.12.6 lib/mocha/method_matcher.rb
mocha-0.12.5 lib/mocha/method_matcher.rb
challah-0.8.1 vendor/bundle/gems/mocha-0.12.3/lib/mocha/method_matcher.rb
mocha-0.12.4 lib/mocha/method_matcher.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/mocha-0.12.2/lib/mocha/method_matcher.rb
challah-rolls-0.1.0 vendor/bundle/gems/mocha-0.12.3/lib/mocha/method_matcher.rb
challah-rolls-0.1.0 vendor/bundle/gems/mocha-0.12.2/lib/mocha/method_matcher.rb
challah-0.8.0.pre vendor/bundle/gems/mocha-0.12.2/lib/mocha/method_matcher.rb
challah-0.7.1 vendor/bundle/gems/mocha-0.12.2/lib/mocha/method_matcher.rb
challah-0.7.0 vendor/bundle/gems/mocha-0.12.2/lib/mocha/method_matcher.rb
challah-0.7.0.pre2 vendor/bundle/gems/mocha-0.12.2/lib/mocha/method_matcher.rb