Sha256: b571880bf69ba63e552f54c8ea1522fd100f673a537ba02940b51ab9a5224e74

Contents?: true

Size: 349 Bytes

Versions: 38

Compression:

Stored size: 349 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.to_sym
    end

    def mocha_inspect
      @expected_method_name.to_s
    end
  end
end

Version data entries

38 entries across 38 versions & 3 rubygems

Version Path
mocha-2.0.0.alpha lib/mocha/method_matcher.rb
mocha-1.15.0 lib/mocha/method_matcher.rb
mocha-1.14.0 lib/mocha/method_matcher.rb
mocha-1.13.0 lib/mocha/method_matcher.rb
mocha-1.12.0 lib/mocha/method_matcher.rb
mocha-1.11.2 lib/mocha/method_matcher.rb
mocha-1.11.1 lib/mocha/method_matcher.rb
mocha-1.11.0 lib/mocha/method_matcher.rb
mocha-1.10.2 lib/mocha/method_matcher.rb
mocha-1.10.1 lib/mocha/method_matcher.rb
mocha-1.10.0 lib/mocha/method_matcher.rb
mocha-1.10.0.beta.1 lib/mocha/method_matcher.rb
mocha-1.10.0.alpha lib/mocha/method_matcher.rb
mocha-1.9.0 lib/mocha/method_matcher.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/mocha-1.8.0/lib/mocha/method_matcher.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/mocha-1.8.0/lib/mocha/method_matcher.rb
mocha-1.8.0 lib/mocha/method_matcher.rb
mocha-1.7.0 lib/mocha/method_matcher.rb