Sha256: 05f342d74e72c5d33c12ecfd7b0b9812334a1cc40f83ced3a93be7fa9a96ba52

Contents?: true

Size: 670 Bytes

Versions: 89

Compression:

Stored size: 670 Bytes

Contents

module RR
  module TimesCalledMatchers
    # Including this module marks the TimesCalledMatcher as Terminal.
    # Being Terminal the Double will "terminate" when times called is
    # finite.
    #
    # The Double that uses a Terminal TimesCalledMatcher will
    # eventually be passed over to the next Double when passed
    # the matching arguments enough times. This is done by the attempt?
    # method returning false when executed a finite number of times.
    #
    # This is in opposition to NonTerminal TimesCalledMatchers, where
    # attempt? will always return true.
    module Terminal #:nodoc:
      def terminal?
        true
      end
    end
  end
end

Version data entries

89 entries across 85 versions & 9 rubygems

Version Path
adva-0.2.4 test/rr/lib/rr/times_called_matchers/terminal.rb
rr-3.1.1 lib/rr/times_called_matchers/terminal.rb
adva-0.2.3 test/rr/lib/rr/times_called_matchers/terminal.rb
adva-0.2.2 test/rr/lib/rr/times_called_matchers/terminal.rb
adva-0.2.1 test/rr/lib/rr/times_called_matchers/terminal.rb
adva-0.2.0 test/rr/lib/rr/times_called_matchers/terminal.rb
adva-0.1.4 test/rr/lib/rr/times_called_matchers/terminal.rb
adva-0.1.3 test/rr/lib/rr/times_called_matchers/terminal.rb
adva-0.1.2 test/rr/lib/rr/times_called_matchers/terminal.rb
adva-0.1.1 test/rr/lib/rr/times_called_matchers/terminal.rb
adva-0.1.0 test/rr/lib/rr/times_called_matchers/terminal.rb
rr-3.1.0 lib/rr/times_called_matchers/terminal.rb
rr-3.0.9 lib/rr/times_called_matchers/terminal.rb
rr-3.0.8 lib/rr/times_called_matchers/terminal.rb
rr-3.0.7 lib/rr/times_called_matchers/terminal.rb
rr-3.0.6 lib/rr/times_called_matchers/terminal.rb
rr-3.0.5 lib/rr/times_called_matchers/terminal.rb
rr-3.0.4 lib/rr/times_called_matchers/terminal.rb
rr-3.0.3 lib/rr/times_called_matchers/terminal.rb
rr-3.0.2 lib/rr/times_called_matchers/terminal.rb