Bring spec_helper in line with test_helper.

This commit is contained in:
Markus Reiter 2016-10-21 16:54:45 +02:00
parent e51accecfd
commit 364adff35c

View File

@ -31,11 +31,11 @@ Hbc.appdir = Pathname.new(TEST_TMPDIR).join("Applications").tap(&:mkpath)
Hbc.cache.mkpath Hbc.cache.mkpath
Hbc.caskroom.mkpath Hbc.caskroom.mkpath
Hbc.default_tap = Tap.fetch("caskroom", "spec").tap do |tap| 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 end
FileUtils.ln_s Pathname.new(__FILE__).dirname.join("support"), Hbc.default_tap.path
RSpec.configure do |config| RSpec.configure do |config|
config.order = :random config.order = :random
config.include(Test::Helper::Env) config.include(Test::Helper::Env)