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
rr-3.0.1 lib/rr/times_called_matchers/terminal.rb
rr-3.0.0 lib/rr/times_called_matchers/terminal.rb
rr-1.2.1 lib/rr/times_called_matchers/terminal.rb
rr-1.2.0 lib/rr/times_called_matchers/terminal.rb
adva-0.0.1 test/rr/lib/rr/times_called_matchers/terminal.rb
jferris-rr-0.7.1.0.1239654108 lib/rr/times_called_matchers/terminal.rb
redinger-redinger-rr-0.10.3 lib/rr/times_called_matchers/terminal.rb
redinger-rr-0.10.4 lib/rr/times_called_matchers/terminal.rb
rr-1.1.2 lib/rr/times_called_matchers/terminal.rb
rr-1.1.2.rc1 lib/rr/times_called_matchers/terminal.rb
rr-1.1.1 lib/rr/times_called_matchers/terminal.rb
rr-1.1.1.rc1 lib/rr/times_called_matchers/terminal.rb
rr-1.1.0 lib/rr/times_called_matchers/terminal.rb
rr-1.1.0.rc3 lib/rr/times_called_matchers/terminal.rb
rr-1.1.0.rc2 lib/rr/times_called_matchers/terminal.rb
rr-1.1.0.rc1 lib/rr/times_called_matchers/terminal.rb
rr-1.0.5 lib/rr/times_called_matchers/terminal.rb
rr-1.0.5.rc2 lib/rr/times_called_matchers/terminal.rb
rr-1.0.5.rc1 lib/rr/times_called_matchers/terminal.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/lib/rr/times_called_matchers/terminal.rb