diff options
| author | Markus Reiter | 2017-03-05 20:43:53 +0100 |
|---|---|---|
| committer | GitHub | 2017-03-05 20:43:53 +0100 |
| commit | d0c5aec9ea80f418c222eb99fe71cbe1e10927d2 (patch) | |
| tree | dcfa0e060eced70ef8872d55087fb4c8b027c959 | |
| parent | 43bfaa19f1007776e1809a130568e765adc9a7e8 (diff) | |
| parent | b9c9f0f6872fc3e83e4987559ee3b3c5fa2509a5 (diff) | |
| download | brew-d0c5aec9ea80f418c222eb99fe71cbe1e10927d2.tar.bz2 | |
Merge pull request #2267 from reitermarkus/move-cask-spec-helpers
Move Cask test helpers to `test/support`.
| -rw-r--r-- | Library/Homebrew/cask/spec/spec_helper.rb | 6 | ||||
| -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 |
