diff --git a/Library/Homebrew/test/rubocops/lines_spec.rb b/Library/Homebrew/test/rubocops/lines_spec.rb index dd51cf5e89..8abd8ea169 100644 --- a/Library/Homebrew/test/rubocops/lines_spec.rb +++ b/Library/Homebrew/test/rubocops/lines_spec.rb @@ -1387,8 +1387,8 @@ describe RuboCop::Cop::FormulaAudit::Miscellaneous do url 'https://brew.sh/foo-1.0.tgz' test do head = ARGV.include? "--HEAD" - ^^^^^^ Use "if build.head?" instead ^^^^ Use build instead of ARGV to check options + ^^^^^^^^^^^^^^^^^^^^^^ Use "if build.head?" instead end end RUBY