From 1ead0d4fe556cd7a671ea2f66f72354f4a40fc8c Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Tue, 21 Jul 2015 15:02:15 +0800 Subject: tests: use ARGV.include? instead of ARGV.flag? --- Library/Homebrew/cmd/tests.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/tests.rb b/Library/Homebrew/cmd/tests.rb index a686a7f8c..62182aebe 100644 --- a/Library/Homebrew/cmd/tests.rb +++ b/Library/Homebrew/cmd/tests.rb @@ -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") -- cgit v1.2.3