lib/rubocop/cop/rspec/hook_argument.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/hook_argument.rb in rubocop-rspec-2.26.0
- old
+ new
@@ -64,15 +64,15 @@
IMPLICIT_MSG = 'Omit the default `%<scope>p` argument for RSpec hooks.'
EXPLICIT_MSG = 'Use `%<scope>p` for RSpec hooks.'
# @!method scoped_hook(node)
- def_node_matcher :scoped_hook, <<-PATTERN
+ def_node_matcher :scoped_hook, <<~PATTERN
({block numblock} $(send _ #Hooks.all (sym ${:each :example})) ...)
PATTERN
# @!method unscoped_hook(node)
- def_node_matcher :unscoped_hook, <<-PATTERN
+ def_node_matcher :unscoped_hook, <<~PATTERN
({block numblock} $(send _ #Hooks.all) ...)
PATTERN
def on_block(node)
hook(node) do |method_send, scope_name|