aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_sandbox.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/test_sandbox.rb')
-rw-r--r--Library/Homebrew/test/test_sandbox.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_sandbox.rb b/Library/Homebrew/test/test_sandbox.rb
index 4564edb3b..eb1ac233d 100644
--- a/Library/Homebrew/test/test_sandbox.rb
+++ b/Library/Homebrew/test/test_sandbox.rb
@@ -10,7 +10,7 @@ class SandboxTest < Homebrew::TestCase
s = Sandbox.new
testpath = Pathname.new(TEST_TMPDIR)
foo = testpath/"foo"
- s.allow_write "#{testpath}", :type => :subpath
+ s.allow_write foo
s.exec "touch", foo
assert_predicate foo, :exist?
foo.unlink