diff options
Diffstat (limited to 'Library/Homebrew/test/test_integration_cmds.rb')
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 82686b8cb..5538cc3ee 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -1,11 +1,11 @@ require "testing_env" class IntegrationCommandTests < Homebrew::TestCase - def cmd_output *args + def cmd_output(*args) cmd_args = %W[ - -W0 - -I#{HOMEBREW_LIBRARY_PATH}/test/lib - -rconfig + -W0 + -I#{HOMEBREW_LIBRARY_PATH}/test/lib + -rconfig ] cmd_args << "-rsimplecov" if ENV["HOMEBREW_TESTS_COVERAGE"] cmd_args << (HOMEBREW_LIBRARY_PATH/"../brew.rb").resolved_path.to_s @@ -18,13 +18,13 @@ class IntegrationCommandTests < Homebrew::TestCase end end - def cmd *args + def cmd(*args) output = cmd_output(*args) assert_equal 0, $?.exitstatus output end - def cmd_fail *args + def cmd_fail(*args) output = cmd_output(*args) assert_equal 1, $?.exitstatus output |
