Sha256: 4d9982114302e621238abb2725d49fa4165e90600c2874d3422d837c9b8d5717

Contents?: true

Size: 212 Bytes

Versions: 92

Compression:

Stored size: 212 Bytes

Contents

module RR
  module TimesCalledMatchers
    class ProcMatcher < TimesCalledMatcher #:nodoc:
      include NonTerminal

      def matches?(times_called)
        @times.call(times_called)
      end
    end
  end
end

Version data entries

92 entries across 88 versions & 9 rubygems

Version Path
adva-0.3.2 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
adva-0.3.1 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
adva-0.3.0 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
adva-0.2.4 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
rr-3.1.1 lib/rr/times_called_matchers/proc_matcher.rb
adva-0.2.3 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
adva-0.2.2 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
adva-0.2.1 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
adva-0.2.0 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
adva-0.1.4 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
adva-0.1.3 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
adva-0.1.2 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
adva-0.1.1 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
adva-0.1.0 test/rr/lib/rr/times_called_matchers/proc_matcher.rb
rr-3.1.0 lib/rr/times_called_matchers/proc_matcher.rb
rr-3.0.9 lib/rr/times_called_matchers/proc_matcher.rb
rr-3.0.8 lib/rr/times_called_matchers/proc_matcher.rb
rr-3.0.7 lib/rr/times_called_matchers/proc_matcher.rb
rr-3.0.6 lib/rr/times_called_matchers/proc_matcher.rb
rr-3.0.5 lib/rr/times_called_matchers/proc_matcher.rb