lib/rubocop/cop/rspec/hooks_before_examples.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/hooks_before_examples.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -26,9 +26,10 @@
class HooksBeforeExamples < Base
extend AutoCorrector
MSG = 'Move `%<hook>s` above the examples in the group.'
+ # @!method example_or_group?(node)
def_node_matcher :example_or_group?, <<-PATTERN
{
#{block_pattern('{#ExampleGroups.all #Examples.all}')}
#{send_pattern('#Includes.examples')}
}