Class: RR::TimesCalledMatchers::AnyTimesMatcher

Inherits:
TimesCalledMatcher show all
Includes:
NonTerminal
Defined in:
lib/rr/times_called_matchers/any_times_matcher.rb

Instance Attribute Summary

Attributes inherited from TimesCalledMatcher

#times

Instance Method Summary collapse

Methods included from NonTerminal

#attempt?, #possible_match?, #terminal?

Methods inherited from TimesCalledMatcher

#==, #attempt?, #error_message

Constructor Details

#initializeAnyTimesMatcher

Returns a new instance of AnyTimesMatcher.



6
7
# File 'lib/rr/times_called_matchers/any_times_matcher.rb', line 6

def initialize
end

Instance Method Details

#expected_times_messageObject



13
14
15
# File 'lib/rr/times_called_matchers/any_times_matcher.rb', line 13

def expected_times_message
  "any number of times"
end

#matches?(times_called) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/rr/times_called_matchers/any_times_matcher.rb', line 9

def matches?(times_called)
  true
end