lib/rubocop/cop/rspec/around_block.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/around_block.rb in rubocop-rspec-2.26.0

- old
+ new

@@ -30,20 +30,20 @@ MSG_NO_ARG = 'Test object should be passed to around block.' MSG_UNUSED_ARG = 'You should call `%<arg>s.call` ' \ 'or `%<arg>s.run`.' # @!method hook_block(node) - def_node_matcher :hook_block, <<-PATTERN + def_node_matcher :hook_block, <<~PATTERN (block (send nil? :around sym ?) (args $...) ...) PATTERN # @!method hook_numblock(node) - def_node_matcher :hook_numblock, <<-PATTERN + def_node_matcher :hook_numblock, <<~PATTERN (numblock (send nil? :around sym ?) ...) PATTERN # @!method find_arg_usage(node) - def_node_search :find_arg_usage, <<-PATTERN + def_node_search :find_arg_usage, <<~PATTERN {(send $... {:call :run}) (send _ _ $...) (yield $...) (block-pass $...)} PATTERN def on_block(node) hook_block(node) do |(example_proxy)|