lib/rubocop/cop/rspec/iterated_expectation.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/iterated_expectation.rb in rubocop-rspec-2.3.0

- old
+ new

@@ -17,17 +17,19 @@ # end class IteratedExpectation < Base MSG = 'Prefer using the `all` matcher instead ' \ 'of iterating over an array.' + # @!method each?(node) def_node_matcher :each?, <<-PATTERN (block (send ... :each) (args (arg $_)) $(...) ) PATTERN + # @!method expectation?(node) def_node_matcher :expectation?, <<-PATTERN (send (send nil? :expect (lvar %)) :to ...) PATTERN def on_block(node)