aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd/unlinkapps_spec.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-28 16:04:04 +0100
committerGitHub2017-02-28 16:04:04 +0100
commitfa34aa2a21473a4e4d360e9561f8ca89f2415ded (patch)
tree0c5bcf473909f755d209793892a21ce40f6bdd07 /Library/Homebrew/test/cmd/unlinkapps_spec.rb
parent0457f0d3e2186991c16e2136b12a5ecc034d99da (diff)
parenta5549023804a8cef50f71dc2d7a723be8e83f3d1 (diff)
downloadbrew-fa34aa2a21473a4e4d360e9561f8ca89f2415ded.tar.bz2
Merge pull request #2232 from reitermarkus/spec-mktmpdir
Add `mktmpdir` helper method.
Diffstat (limited to 'Library/Homebrew/test/cmd/unlinkapps_spec.rb')
-rw-r--r--Library/Homebrew/test/cmd/unlinkapps_spec.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/test/cmd/unlinkapps_spec.rb b/Library/Homebrew/test/cmd/unlinkapps_spec.rb
index 1e21bd851..e1170f435 100644
--- a/Library/Homebrew/test/cmd/unlinkapps_spec.rb
+++ b/Library/Homebrew/test/cmd/unlinkapps_spec.rb
@@ -1,11 +1,7 @@
describe "brew unlinkapps", :integration_test do
- let(:home_dir) { @home_dir = Pathname.new(Dir.mktmpdir) }
+ let(:home_dir) { mktmpdir }
let(:apps_dir) { home_dir/"Applications" }
- after(:each) do
- home_dir.rmtree unless @home_dir.nil?
- end
-
it "unlinks symlinked applications" do
apps_dir.mkpath