lib/rubocop/rspec/language.rb in rubocop-rspec-1.38.1 vs lib/rubocop/rspec/language.rb in rubocop-rspec-1.39.0
- old
+ new
@@ -26,9 +26,17 @@
def block_pattern
"(block #{send_pattern} ...)"
end
+ def block_pass_pattern
+ "(send #{RSPEC} #{node_pattern_union} _ block_pass)"
+ end
+
+ def block_or_block_pass_pattern
+ "{#{block_pattern} #{block_pass_pattern}}"
+ end
+
def send_pattern
"(send #{RSPEC} #{node_pattern_union} ...)"
end
def node_pattern_union