aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMarkus Reiter2017-03-05 05:30:45 +0100
committerMarkus Reiter2017-03-05 19:13:06 +0100
commitb9c9f0f6872fc3e83e4987559ee3b3c5fa2509a5 (patch)
tree84afa4f0d54e6841632a52dcd216bc02ccd0be0f /Library/Homebrew
parent5fbccc03a7d496e75e83742d0c7e606a4db131ab (diff)
downloadbrew-b9c9f0f6872fc3e83e4987559ee3b3c5fa2509a5.tar.bz2
Move Cask test helpers to `test/support`.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cask/spec/spec_helper.rb6
-rw-r--r--Library/Homebrew/test/support/helper/cask/fake_system_command.rb (renamed from Library/Homebrew/cask/spec/support/fake_system_command.rb)0
-rw-r--r--Library/Homebrew/test/support/helper/cask/install_helper.rb (renamed from Library/Homebrew/cask/spec/support/install_helper.rb)0
-rw-r--r--Library/Homebrew/test/support/helper/cask/never_sudo_system_command.rb (renamed from Library/Homebrew/cask/spec/support/never_sudo_system_command.rb)0
4 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/spec/spec_helper.rb b/Library/Homebrew/cask/spec/spec_helper.rb
index ca0b69d33..0b3a120ca 100644
--- a/Library/Homebrew/cask/spec/spec_helper.rb
+++ b/Library/Homebrew/cask/spec/spec_helper.rb
@@ -4,10 +4,12 @@ require "test/spec_helper"
# add Homebrew-Cask to load path
$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 "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 = [
:appdir,
:caskroom,
diff --git a/Library/Homebrew/cask/spec/support/fake_system_command.rb b/Library/Homebrew/test/support/helper/cask/fake_system_command.rb
index b9390d482..b9390d482 100644
--- a/Library/Homebrew/cask/spec/support/fake_system_command.rb
+++ b/Library/Homebrew/test/support/helper/cask/fake_system_command.rb
diff --git a/Library/Homebrew/cask/spec/support/install_helper.rb b/Library/Homebrew/test/support/helper/cask/install_helper.rb
index d91b9ea57..d91b9ea57 100644
--- a/Library/Homebrew/cask/spec/support/install_helper.rb
+++ b/Library/Homebrew/test/support/helper/cask/install_helper.rb
diff --git a/Library/Homebrew/cask/spec/support/never_sudo_system_command.rb b/Library/Homebrew/test/support/helper/cask/never_sudo_system_command.rb
index eb8b677f2..eb8b677f2 100644
--- a/Library/Homebrew/cask/spec/support/never_sudo_system_command.rb
+++ b/Library/Homebrew/test/support/helper/cask/never_sudo_system_command.rb