lib/rubocop/cop/rspec/repeated_include_example.rb in rubocop-rspec-2.18.1 vs lib/rubocop/cop/rspec/repeated_include_example.rb in rubocop-rspec-2.19.0

- old
+ new

@@ -54,15 +54,14 @@ (begin <#include_examples? #include_examples? ...>) PATTERN # @!method include_examples?(node) def_node_matcher :include_examples?, - send_pattern('#Includes.examples') + '(send nil? #Includes.examples ...)' # @!method shared_examples_name(node) - def_node_matcher :shared_examples_name, <<-PATTERN - (send _ #Includes.examples $_ ...) - PATTERN + def_node_matcher :shared_examples_name, + '(send nil? #Includes.examples $_name ...)' def on_begin(node) return unless several_include_examples?(node) repeated_include_examples(node).each do |item, repeats|