diff options
| author | Markus Reiter | 2017-07-29 22:21:41 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-07-29 22:21:41 +0200 |
| commit | 5fea557da3c7ef8e47f2942b16078048bfc98072 (patch) | |
| tree | a30be0a04a4b207e97edf0262a1ddef2be747821 | |
| parent | 73084096842b9ea6fb0b2feaefbb688eb59c9db0 (diff) | |
| download | brew-5fea557da3c7ef8e47f2942b16078048bfc98072.tar.bz2 | |
Use `mktmpdir`.
| -rw-r--r-- | Library/Homebrew/test/caveats_spec.rb | 4 |
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 |
