aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/spec
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-23 13:34:41 +0200
committerGitHub2016-10-23 13:34:41 +0200
commitf56e410ebfa82ced3ae480659ce217ad8fe456ef (patch)
treec42a0d3e9aad194cc519b1354cf405ff58f10b22 /Library/Homebrew/cask/spec
parent195bc6dbac9f01ca345c808ec312d8212b1c0a3c (diff)
parent7016d714ab2c06d0338a814bbdb4b696a2cb5101 (diff)
downloadbrew-f56e410ebfa82ced3ae480659ce217ad8fe456ef.tar.bz2
Merge pull request #1339 from reitermarkus/test-helper
Use `test/lib/config` for tests.
Diffstat (limited to 'Library/Homebrew/cask/spec')
-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)