Merge pull request #2267 from reitermarkus/move-cask-spec-helpers

Move Cask test helpers to `test/support`.
This commit is contained in:
Markus Reiter 2017-03-05 20:43:53 +01:00 committed by GitHub
commit d0c5aec9ea
4 changed files with 4 additions and 2 deletions

View File

@ -4,10 +4,12 @@ require "test/spec_helper"
# add Homebrew-Cask to load path # add Homebrew-Cask to load path
$LOAD_PATH.push(HOMEBREW_LIBRARY_PATH.join("cask", "lib").to_s) $LOAD_PATH.push(HOMEBREW_LIBRARY_PATH.join("cask", "lib").to_s)
Pathname.glob(HOMEBREW_LIBRARY_PATH.join("cask", "spec", "support", "**", "*.rb")).each(&method(:require))
require "hbc" require "hbc"
require "test/support/helper/cask/fake_system_command"
require "test/support/helper/cask/install_helper"
require "test/support/helper/cask/never_sudo_system_command"
HOMEBREW_CASK_DIRS = [ HOMEBREW_CASK_DIRS = [
:appdir, :appdir,
:caskroom, :caskroom,