lib/rubocop/rspec/language/node_pattern.rb in rubocop-rspec-1.8.0 vs lib/rubocop/rspec/language/node_pattern.rb in rubocop-rspec-1.9.0
- old
+ new
@@ -5,12 +5,10 @@
module Language
# Common node matchers used for matching against the rspec DSL
module NodePattern
extend RuboCop::NodePattern::Macros
- def_node_matcher :example_group?, <<-PATTERN
- (block (send _ {#{ExampleGroups::ALL.to_node_pattern}} ...) ...)
- PATTERN
+ def_node_matcher :example_group?, ExampleGroups::ALL.block_pattern
end
end
end
end