lib/rubocop/cop/rspec/around_block.rb in rubocop-rspec-1.43.2 vs lib/rubocop/cop/rspec/around_block.rb in rubocop-rspec-1.44.0
- old
+ new
@@ -29,10 +29,10 @@
MSG_NO_ARG = 'Test object should be passed to around block.'
MSG_UNUSED_ARG = 'You should call `%<arg>s.call` '\
'or `%<arg>s.run`.'
def_node_matcher :hook, <<-PATTERN
- (block {(send nil? :around) (send nil? :around sym)} (args $...) ...)
+ (block (send nil? :around sym ?) (args $...) ...)
PATTERN
def_node_search :find_arg_usage, <<-PATTERN
{(send $... {:call :run}) (send _ _ $...) (yield $...) (block-pass $...)}
PATTERN