lib/rubocop/cop/rspec/empty_hook.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/empty_hook.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -26,9 +26,10 @@
extend AutoCorrector
include RuboCop::Cop::RangeHelp
MSG = 'Empty hook detected.'
+ # @!method empty_hook?(node)
def_node_matcher :empty_hook?, <<~PATTERN
(block $#{send_pattern('#Hooks.all')} _ nil?)
PATTERN
def on_block(node)