lib/rubocop/cop/rspec/repeated_include_example.rb in rubocop-rspec-2.0.0.pre vs lib/rubocop/cop/rspec/repeated_include_example.rb in rubocop-rspec-2.0.0
- old
+ new
@@ -52,13 +52,14 @@
def_node_matcher :several_include_examples?, <<-PATTERN
(begin <#include_examples? #include_examples? ...>)
PATTERN
- def_node_matcher :include_examples?, Includes::EXAMPLES.send_pattern
+ def_node_matcher :include_examples?,
+ send_pattern('#Includes.examples')
def_node_matcher :shared_examples_name, <<-PATTERN
- (send _ #{Includes::EXAMPLES.node_pattern_union} $_ ...)
+ (send _ #Includes.examples $_ ...)
PATTERN
def on_begin(node)
return unless several_include_examples?(node)