Sha256: 0134f4ad8b7c7565f4846ca3919cacc235d77e210ce00be9191d2d2c65aa2a40
Contents?: true
Size: 430 Bytes
Versions: 19
Compression:
Stored size: 430 Bytes
Contents
module RR module TimesCalledMatchers class AtMostMatcher < TimesCalledMatcher include Terminal def possible_match?(times_called) times_called <= @times end def matches?(times_called) times_called <= @times end def attempt?(times_called) times_called < @times end protected def expected_message_part "Expected at most #{@times.inspect} times." end end end end
Version data entries
19 entries across 19 versions & 1 rubygems