aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlyssa Ross2017-01-21 15:16:32 +0000
committerAlyssa Ross2017-01-22 19:53:58 +0000
commita736c7e3173fd7a9727026b5b968ac5f067a906d (patch)
tree3f38b66818178dbe4d5ae77dc666859d6e0977f1 /Library
parent0c1d665568875ffccb660a65ff248b7ab98ec77c (diff)
downloadbrew-a736c7e3173fd7a9727026b5b968ac5f067a906d.tar.bz2
tests: set verbose in ENV instead of stubbing ARGV
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/sandbox_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/sandbox_test.rb b/Library/Homebrew/test/sandbox_test.rb
index 2e97b5d6a..21a3ca8c4 100644
--- a/Library/Homebrew/test/sandbox_test.rb
+++ b/Library/Homebrew/test/sandbox_test.rb
@@ -47,7 +47,7 @@ class SandboxTest < Homebrew::TestCase
def test_complains_on_failure
Utils.expects(popen_read: "foo")
- ARGV.stubs(verbose?: true)
+ ENV["HOMEBREW_VERBOSE"] = "1"
out, _err = capture_io do
assert_raises(ErrorDuringExecution) { @sandbox.exec "false" }
end
@@ -61,7 +61,7 @@ class SandboxTest < Homebrew::TestCase
bar
EOS
Utils.expects(popen_read: with_bogus_error)
- ARGV.stubs(verbose?: true)
+ ENV["HOMEBREW_VERBOSE"] = "1"
out, _err = capture_io do
assert_raises(ErrorDuringExecution) { @sandbox.exec "false" }
end