Sha256: 54bb9c479323768c9aadfcdad7c578ca1445e8ebb654423545306ddb5713ecc2

Contents?: true

Size: 406 Bytes

Versions: 31

Compression:

Stored size: 406 Bytes

Contents

module RR
  module TimesCalledMatchers #:nodoc:
    class NeverMatcher < TimesCalledMatcher
      include Terminal

      def initialize
        super 0
      end

      def possible_match?(times_called)
        true
      end

      def matches?(times_called)
        true
      end

      def attempt?(times_called)
        raise RR::Errors::TimesCalledError, error_message(1)
      end
    end
  end
end

Version data entries

31 entries across 27 versions & 5 rubygems

Version Path
rr-1.0.5 lib/rr/times_called_matchers/never_matcher.rb
rr-1.0.5.rc2 lib/rr/times_called_matchers/never_matcher.rb
rr-1.0.5.rc1 lib/rr/times_called_matchers/never_matcher.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/never_matcher.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/lib/rr/times_called_matchers/never_matcher.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/lib/rr/times_called_matchers/never_matcher.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/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/never_matcher.rb
bitclust-core-0.5.2 vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/lib/rr/times_called_matchers/never_matcher.rb
bitclust-core-0.5.2 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/never_matcher.rb
bitclust-core-0.5.1 vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/lib/rr/times_called_matchers/never_matcher.rb
mcmire-rr-1.0.5.rc1 lib/rr/times_called_matchers/never_matcher.rb
messagebus_ruby_api-0.4.7 spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/never_matcher.rb
messagebus_ruby_api-0.4.4 spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/never_matcher.rb
rr-1.0.4 lib/rr/times_called_matchers/never_matcher.rb
rr-1.0.3 lib/rr/times_called_matchers/never_matcher.rb
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/never_matcher.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/never_matcher.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/never_matcher.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/never_matcher.rb
vim-jar-0.0.3 bundler/ruby/1.8/gems/rr-1.0.2/lib/rr/times_called_matchers/never_matcher.rb