class Mocha::MethodMatcher
Attributes
Public Class Methods
Source
# File lib/mocha/method_matcher.rb, line 5 def initialize(expected_method_name) @expected_method_name = expected_method_name end
Public Instance Methods
Source
# File lib/mocha/method_matcher.rb, line 9 def match?(actual_method_name) @expected_method_name == actual_method_name.to_sym end
Source
# File lib/mocha/method_matcher.rb, line 13 def mocha_inspect @expected_method_name.to_s end