lib/rubocop/cop/rspec/empty_hook.rb in rubocop-rspec-2.0.0.pre vs lib/rubocop/cop/rspec/empty_hook.rb in rubocop-rspec-2.0.0
- old
+ new
@@ -27,10 +27,10 @@
include RuboCop::Cop::RangeHelp
MSG = 'Empty hook detected.'
def_node_matcher :empty_hook?, <<~PATTERN
- (block $#{Hooks::ALL.send_pattern} _ nil?)
+ (block $#{send_pattern('#Hooks.all')} _ nil?)
PATTERN
def on_block(node)
empty_hook?(node) do |hook|
add_offense(hook) do |corrector|