aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/sandbox_spec.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-07-30 16:02:36 +0100
committerGitHub2017-07-30 16:02:36 +0100
commit3821132f9e58dc7b72795978c9e9237b4c155b1b (patch)
treeaae66ad55cfd5d4b45a416cd41e15f9b7dde1788 /Library/Homebrew/test/sandbox_spec.rb
parent627b1dae707b4b5ea5e299ff12dd8ac1abbfa056 (diff)
parentfb310c57b18c3835ed69e25e653cddc3570f64ac (diff)
downloadbrew-3821132f9e58dc7b72795978c9e9237b4c155b1b.tar.bz2
Merge pull request #2898 from MikeMcQuaid/sandbox-all-taps
sandbox: sandbox all taps by default.
Diffstat (limited to 'Library/Homebrew/test/sandbox_spec.rb')
-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 10414f75b..38ff4da75 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