lib/rubocop/cop/rspec/let_before_examples.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/let_before_examples.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -33,9 +33,10 @@
class LetBeforeExamples < Base
extend AutoCorrector
MSG = 'Move `let` before 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')}
}