aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2017-07-30 00:34:59 +0200
committerGitHub2017-07-30 00:34:59 +0200
commit627b1dae707b4b5ea5e299ff12dd8ac1abbfa056 (patch)
treea9b77771d4e26f7592f820a551147eba54858764
parent49e12b5b534739f8d1c8f67355f1e50ae9b21e57 (diff)
parent5fea557da3c7ef8e47f2942b16078048bfc98072 (diff)
downloadbrew-627b1dae707b4b5ea5e299ff12dd8ac1abbfa056.tar.bz2
Merge pull request #2972 from reitermarkus/plist_path
Use `mktmpdir`.
-rw-r--r--Library/Homebrew/test/caveats_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/caveats_spec.rb b/Library/Homebrew/test/caveats_spec.rb
index 53c90d60a..96ed7ea17 100644
--- a/Library/Homebrew/test/caveats_spec.rb
+++ b/Library/Homebrew/test/caveats_spec.rb
@@ -59,7 +59,7 @@ describe Caveats do
plist_options startup: true
end
f_obj = described_class.new(f)
- plist_path = Pathname.new("plist")
+ plist_path = mktmpdir/"plist"
FileUtils.touch plist_path
allow(f_obj).to receive(:plist_path).and_return(plist_path)
allow(plist_path).to receive(:symlink?).and_return(true)
@@ -78,7 +78,7 @@ describe Caveats do
}
let(:f_obj) { described_class.new(f) }
let(:caveats) { f_obj.caveats }
- let(:plist_path) { Pathname.new("plist") }
+ let(:plist_path) { mktmpdir/"plist" }
before do
FileUtils.touch plist_path