From 4df40a4b7dccb0f5337bc293fc40b6c3d496a871 Mon Sep 17 00:00:00 2001 From: Yudai Takada Date: Fri, 5 Jan 2024 23:13:57 +0900 Subject: [PATCH] Update lib/rubocop/cop/rspec/shared_examples.rb Co-authored-by: Benjamin Quorning <22333+bquorning@users.noreply.github.com> --- lib/rubocop/cop/rspec/shared_examples.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rubocop/cop/rspec/shared_examples.rb b/lib/rubocop/cop/rspec/shared_examples.rb index 1a8940a28..badc3f8ce 100644 --- a/lib/rubocop/cop/rspec/shared_examples.rb +++ b/lib/rubocop/cop/rspec/shared_examples.rb @@ -46,8 +46,8 @@ class SharedExamples < Base # @!method shared_examples(node) def_node_matcher :shared_examples, <<~PATTERN { - (send #rspec? #SharedGroups.all _+) - (send nil? #Includes.all _+) + (send #rspec? #SharedGroups.all $_ ...) + (send nil? #Includes.all $_ ...) } PATTERN