aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/spec/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cask/spec/spec_helper.rb')
-rw-r--r--Library/Homebrew/cask/spec/spec_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/spec/spec_helper.rb b/Library/Homebrew/cask/spec/spec_helper.rb
index d9f29c828..059d13a3a 100644
--- a/Library/Homebrew/cask/spec/spec_helper.rb
+++ b/Library/Homebrew/cask/spec/spec_helper.rb
@@ -31,6 +31,9 @@ Hbc.default_tap = Tap.fetch("caskroom", "spec").tap do |tap|
FileUtils.ln_s TEST_FIXTURE_DIR.join("cask"), tap.path
end
+# pretend that the caskroom/cask Tap is installed
+FileUtils.ln_s Pathname.new(ENV["HOMEBREW_LIBRARY"]).join("Taps", "caskroom", "homebrew-cask"), Tap.fetch("caskroom", "cask").path
+
RSpec.configure do |config|
config.order = :random
config.include(Test::Helper::Shutup)