class Mocha::MethodMatcher

Attributes

expected_method_name[R]

Public Class Methods

new(expected_method_name) click to toggle source
# File lib/mocha/method_matcher.rb, line 7
def initialize(expected_method_name)
  @expected_method_name = expected_method_name
end

Public Instance Methods

match?(actual_method_name) click to toggle source
# File lib/mocha/method_matcher.rb, line 11
def match?(actual_method_name)
  @expected_method_name == actual_method_name
end
mocha_inspect() click to toggle source
# File lib/mocha/method_matcher.rb, line 15
def mocha_inspect
  "#{@expected_method_name}"
end