aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-21 16:54:45 +0200
committerMarkus Reiter2016-10-21 17:39:19 +0200
commit7016d714ab2c06d0338a814bbdb4b696a2cb5101 (patch)
treed7fc795b287dc2e4467f06cae3d7b1adc43f98e3 /Library/Homebrew
parent40a197f216f882ef04c6f66bf6cb8dd421703d16 (diff)
downloadbrew-7016d714ab2c06d0338a814bbdb4b696a2cb5101.tar.bz2
Bring `spec_helper` in line with `test_helper`.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cask/spec/spec_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cask/spec/spec_helper.rb b/Library/Homebrew/cask/spec/spec_helper.rb
index b71e1ecae..1e41e3de4 100644
--- a/Library/Homebrew/cask/spec/spec_helper.rb
+++ b/Library/Homebrew/cask/spec/spec_helper.rb
@@ -31,11 +31,11 @@ Hbc.appdir = Pathname.new(TEST_TMPDIR).join("Applications").tap(&:mkpath)
Hbc.cache.mkpath
Hbc.caskroom.mkpath
Hbc.default_tap = Tap.fetch("caskroom", "spec").tap do |tap|
- tap.path.dirname.mkpath
+ # link test casks
+ FileUtils.mkdir_p tap.path.dirname
+ FileUtils.ln_s Pathname.new(__FILE__).dirname.join("support"), tap.path
end
-FileUtils.ln_s Pathname.new(__FILE__).dirname.join("support"), Hbc.default_tap.path
-
RSpec.configure do |config|
config.order = :random
config.include(Test::Helper::Env)