diff options
| author | Markus Reiter | 2017-02-28 16:04:04 +0100 |
|---|---|---|
| committer | GitHub | 2017-02-28 16:04:04 +0100 |
| commit | fa34aa2a21473a4e4d360e9561f8ca89f2415ded (patch) | |
| tree | 0c5bcf473909f755d209793892a21ce40f6bdd07 /Library/Homebrew/test/pathname_spec.rb | |
| parent | 0457f0d3e2186991c16e2136b12a5ecc034d99da (diff) | |
| parent | a5549023804a8cef50f71dc2d7a723be8e83f3d1 (diff) | |
| download | brew-fa34aa2a21473a4e4d360e9561f8ca89f2415ded.tar.bz2 | |
Merge pull request #2232 from reitermarkus/spec-mktmpdir
Add `mktmpdir` helper method.
Diffstat (limited to 'Library/Homebrew/test/pathname_spec.rb')
| -rw-r--r-- | Library/Homebrew/test/pathname_spec.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Homebrew/test/pathname_spec.rb b/Library/Homebrew/test/pathname_spec.rb index 21e14479f..77cb6cfed 100644 --- a/Library/Homebrew/test/pathname_spec.rb +++ b/Library/Homebrew/test/pathname_spec.rb @@ -5,13 +5,11 @@ require "install_renamed" describe Pathname do include FileUtils - let(:src) { Pathname.new(Dir.mktmpdir) } - let(:dst) { Pathname.new(Dir.mktmpdir) } + let(:src) { mktmpdir } + let(:dst) { mktmpdir } let(:file) { src/"foo" } let(:dir) { src/"bar" } - after(:each) { rm_rf [src, dst] } - describe DiskUsageExtension do before(:each) do mkdir_p dir/"a-directory" @@ -294,7 +292,7 @@ describe Pathname do end describe FileUtils do - let(:dst) { Pathname.new(Dir.mktmpdir) } + let(:dst) { mktmpdir } describe "#mkdir" do it "creates indermediate directories" do |
