aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-21 16:54:45 +0200
committerMarkus Reiter2016-10-23 14:13:16 +0200
commit364adff35c7700a0ab05968907b57d219744f489 (patch)
treec42a0d3e9aad194cc519b1354cf405ff58f10b22 /Library
parente51accecfdc3709d4c4605dcf64606084611a522 (diff)
downloadbrew-364adff35c7700a0ab05968907b57d219744f489.tar.bz2
Bring `spec_helper` in line with `test_helper`.
Diffstat (limited to 'Library')
-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)