aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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