Skip to content
Snippets Groups Projects
Commit 1ead0d4f authored by Xu Cheng's avatar Xu Cheng
Browse files

tests: use ARGV.include? instead of ARGV.flag?

parent 44a8ebdc
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ module Homebrew
def tests
(HOMEBREW_LIBRARY/"Homebrew/test").cd do
ENV["TESTOPTS"] = "-v" if ARGV.verbose?
ENV["HOMEBREW_TESTS_COVERAGE"] = "1" if ARGV.flag? "--coverage"
ENV["HOMEBREW_TESTS_COVERAGE"] = "1" if ARGV.include? "--coverage"
Homebrew.install_gem_setup_path! "bundler"
quiet_system("bundle", "check") || \
system("bundle", "install", "--path", "vendor/bundle")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment