lib/rubocop/rspec/language/node_pattern.rb in rubocop-rspec-1.40.0 vs lib/rubocop/rspec/language/node_pattern.rb in rubocop-rspec-1.41.0

- old
+ new

@@ -6,9 +6,13 @@ # Common node matchers used for matching against the rspec DSL module NodePattern extend RuboCop::NodePattern::Macros def_node_matcher :example_group?, ExampleGroups::ALL.block_pattern + def_node_matcher :shared_group?, SharedGroups::ALL.block_pattern + + spec_groups = ExampleGroups::ALL + SharedGroups::ALL + def_node_matcher :spec_group?, spec_groups.block_pattern def_node_matcher :example_group_with_body?, <<-PATTERN (block #{ExampleGroups::ALL.send_pattern} args [!nil?]) PATTERN