Fix style test in lines_spec.rb

This commit is contained in:
souleater7 2021-01-05 15:22:26 -08:00 committed by GitHub
parent d57c7153e2
commit 98e7538679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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