lib/rubocop/cop/rspec/hooks_before_examples.rb in rubocop-rspec-2.0.0.pre vs lib/rubocop/cop/rspec/hooks_before_examples.rb in rubocop-rspec-2.0.0

- old
+ new

@@ -28,11 +28,11 @@ MSG = 'Move `%<hook>s` above 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)