diff options
| author | Markus Reiter | 2017-02-28 14:50:46 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-02-28 15:06:32 +0100 |
| commit | a5549023804a8cef50f71dc2d7a723be8e83f3d1 (patch) | |
| tree | 0c5bcf473909f755d209793892a21ce40f6bdd07 /Library/Homebrew/test/sandbox_spec.rb | |
| parent | 0457f0d3e2186991c16e2136b12a5ecc034d99da (diff) | |
| download | brew-a5549023804a8cef50f71dc2d7a723be8e83f3d1.tar.bz2 | |
Add `mktmpdir` helper method.
Diffstat (limited to 'Library/Homebrew/test/sandbox_spec.rb')
| -rw-r--r-- | Library/Homebrew/test/sandbox_spec.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/test/sandbox_spec.rb b/Library/Homebrew/test/sandbox_spec.rb index 98634bf3c..0d349f6eb 100644 --- a/Library/Homebrew/test/sandbox_spec.rb +++ b/Library/Homebrew/test/sandbox_spec.rb @@ -3,17 +3,13 @@ require "sandbox" RSpec::Matchers.define_negated_matcher :not_matching, :matching describe Sandbox do - let(:dir) { @dir = Pathname.new(Dir.mktmpdir) } + let(:dir) { mktmpdir } let(:file) { dir/"foo" } before(:each) do skip "Sandbox not implemented." unless described_class.available? end - after(:each) do - dir.rmtree unless @dir.nil? - end - specify "#formula?" do f = formula { url "foo-1.0" } f2 = formula { url "bar-1.0" } |
