lib/rubocop/cop/rspec/around_block.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/around_block.rb in rubocop-rspec-2.3.0

- old
+ new

@@ -28,13 +28,15 @@ class AroundBlock < Base 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(node) def_node_matcher :hook, <<-PATTERN (block (send nil? :around sym ?) (args $...) ...) PATTERN + # @!method find_arg_usage(node) def_node_search :find_arg_usage, <<-PATTERN {(send $... {:call :run}) (send _ _ $...) (yield $...) (block-pass $...)} PATTERN def on_block(node)