aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMike McQuaid2017-07-14 17:00:06 +0100
committerMike McQuaid2017-07-14 17:00:07 +0100
commitfb310c57b18c3835ed69e25e653cddc3570f64ac (patch)
treee47707526304dcab546099874c8457b3c6838448 /Library/Homebrew/test
parent4ca2efb12dd1399526e0aa845b56ede58daecddd (diff)
downloadbrew-fb310c57b18c3835ed69e25e653cddc3570f64ac.tar.bz2
sandbox: sandbox all taps by default.
We've been doing this in `brew test-bot`, for our CI and for homebrew/core long enough that this is a reasonable default that provides more protection to our users of non-homebrew/core taps.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/sandbox_spec.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/Library/Homebrew/test/sandbox_spec.rb b/Library/Homebrew/test/sandbox_spec.rb
index eafec4dd4..2c3f62168 100644
--- a/Library/Homebrew/test/sandbox_spec.rb
+++ b/Library/Homebrew/test/sandbox_spec.rb
@@ -12,15 +12,7 @@ describe Sandbox do
specify "#formula?" do
f = formula { url "foo-1.0" }
- f2 = formula { url "bar-1.0" }
- allow(f2).to receive(:tap).and_return(Tap.fetch("test/tap"))
-
- ENV["HOMEBREW_SANDBOX"] = "1"
- expect(described_class).to be_formula(f), "Formulae should be sandboxed if --sandbox was passed."
-
- ENV.delete("HOMEBREW_SANDBOX")
- expect(described_class).to be_formula(f), "Formulae should be sandboxed if in a sandboxed tap."
- expect(described_class).not_to be_formula(f2), "Formulae should not be sandboxed if not in a sandboxed tap."
+ expect(described_class).to be_formula(f), "Formulae should be sandboxed."
end
specify "#test?" do