class RR::TimesCalledMatchers::NeverMatcher
Public Class Methods
Source
# File lib/rr/times_called_matchers/never_matcher.rb, line 6 def initialize super 0 end
Calls superclass method
Public Instance Methods
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
Source
# File lib/rr/times_called_matchers/never_matcher.rb, line 14 def matches?(times_called) true end
Source
# File lib/rr/times_called_matchers/never_matcher.rb, line 10 def possible_match?(times_called) true end