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 5
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 9
def match?(actual_method_name)
  @expected_method_name == actual_method_name.to_sym
end
mocha_inspect() click to toggle source
# File lib/mocha/method_matcher.rb, line 13
def mocha_inspect
  @expected_method_name.to_s
end