lib/rubocop/cop/rspec/receive_counts.rb in rubocop-rspec-2.1.0 vs lib/rubocop/cop/rspec/receive_counts.rb in rubocop-rspec-2.2.0

- old
+ new

@@ -26,9 +26,11 @@ class ReceiveCounts < Base extend AutoCorrector MSG = 'Use `%<alternative>s` instead of `%<original>s`.' + RESTRICT_ON_SEND = %i[times].freeze + def_node_matcher :receive_counts, <<-PATTERN (send $(send _ {:exactly :at_least :at_most} (int {1 2})) :times) PATTERN def_node_search :stub?, '(send nil? :receive ...)'