Skip to content

Commit

Permalink
Merge pull request #1424 from rubocop/simplify-node-pattern
Browse files Browse the repository at this point in the history
Simplify node pattern
  • Loading branch information
pirj authored Oct 23, 2022
2 parents d482dd7 + b918d53 commit c2dc854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/subject_declaration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SubjectDeclaration < Base

# @!method offensive_subject_declaration?(node)
def_node_matcher :offensive_subject_declaration?, <<~PATTERN
(send nil? ${#Subjects.all #Helpers.all} {(sym #Subjects.all) (str #Subjects.all)} ...)
(send nil? ${#Subjects.all #Helpers.all} ({sym str} #Subjects.all) ...)
PATTERN

def on_send(node)
Expand Down

0 comments on commit c2dc854

Please sign in to comment.