lib/rubocop/cop/rspec/redundant_around.rb in rubocop-rspec-2.19.0 vs lib/rubocop/cop/rspec/redundant_around.rb in rubocop-rspec-2.20.0
- old
+ new
@@ -39,14 +39,10 @@
private
# @!method match_redundant_around_hook_block?(node)
def_node_matcher :match_redundant_around_hook_block?, <<~PATTERN
- (block
- (send _ :around ...)
- (args _?)
- (send _ :run)
- )
+ ({block numblock} (send _ :around ...) ... (send _ :run))
PATTERN
# @!method match_redundant_around_hook_send?(node)
def_node_matcher :match_redundant_around_hook_send?, <<~PATTERN
(send