lib/rubocop/cop/rspec/let_before_examples.rb in rubocop-rspec-2.0.0.pre vs lib/rubocop/cop/rspec/let_before_examples.rb in rubocop-rspec-2.0.0
- old
+ new
@@ -35,11 +35,11 @@
MSG = 'Move `let` before the examples in the group.'
def_node_matcher :example_or_group?, <<-PATTERN
{
- #{(Examples::ALL + ExampleGroups::ALL).block_pattern}
- #{Includes::EXAMPLES.send_pattern}
+ #{block_pattern('{#ExampleGroups.all #Examples.all}')}
+ #{send_pattern('#Includes.examples')}
}
PATTERN
def on_block(node)
return unless example_group_with_body?(node)