class RR::TimesCalledMatchers::NeverMatcher
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/rr/times_called_matchers/never_matcher.rb, line 6 def initialize super 0 end
Public Instance Methods
attempt?(times_called)
click to toggle source
# File lib/rr/times_called_matchers/never_matcher.rb, line 18 def attempt?(times_called) raise RR::Errors.build_error(:TimesCalledError, error_message(1)) end
matches?(times_called)
click to toggle source
# File lib/rr/times_called_matchers/never_matcher.rb, line 14 def matches?(times_called) true end
possible_match?(times_called)
click to toggle source
# File lib/rr/times_called_matchers/never_matcher.rb, line 10 def possible_match?(times_called) true end