lib/rubocop/cop/rspec/shared_examples.rb in rubocop-rspec-2.0.0.pre vs lib/rubocop/cop/rspec/shared_examples.rb in rubocop-rspec-2.0.0
- old
+ new
@@ -22,10 +22,12 @@
#
class SharedExamples < Base
extend AutoCorrector
def_node_matcher :shared_examples,
- (SharedGroups::ALL + Includes::ALL).send_pattern
+ send_pattern(
+ '{#SharedGroups.all #Includes.all}'
+ )
def on_send(node)
shared_examples(node) do
ast_node = node.first_argument
next unless ast_node&.sym_type?