2014-06-29 08:33:03 +08:00
|
|
|
project_root = Pathname(File.expand_path("../..", __FILE__))
|
|
|
|
|
|
|
|
Dir["#{project_root}/spec/support/**/*.rb"].each { |f| require f }
|
|
|
|
|
|
|
|
include HomebrewTestingEnvironment
|
|
|
|
|
2014-10-08 22:39:51 +08:00
|
|
|
# add homebrew-cask lib to load path
|
2014-06-29 08:33:03 +08:00
|
|
|
$:.push(project_root.join('lib').to_s)
|
|
|
|
|
|
|
|
require 'cask'
|
|
|
|
|
2014-10-08 22:39:51 +08:00
|
|
|
# Look for Casks in testcasks by default. It is elsewhere required that
|
2014-06-29 08:33:03 +08:00
|
|
|
# the string "test" appear in the directory name.
|
|
|
|
Cask.default_tap = 'caskroom/homebrew-testcasks'
|
|
|
|
|
|
|
|
# our own testy caskroom
|
|
|
|
Cask.caskroom = HOMEBREW_PREFIX.join('TestCaskroom')
|
|
|
|
|
|
|
|
RSpec.configure do |config|
|
|
|
|
config.include ShutupHelper
|
|
|
|
config.include TempEnvVarHelper
|
|
|
|
end
|