homebrew-cask-versions/lib/vendor/homebrew-fork/testing_env.rb
Roland Walker a401047164 remove homebrew-fork MACOS_RELEASE constants
* contain logic within module Hbc::MacOS
* add release_with_patchlevel method
* allow MACOS_RELEASE and MACOS_RELEASE_WITH_PATCHLEVEL
  environment variables to override the determined release
  values regardless of whether under the test harness
2015-01-13 07:35:27 -05:00

13 lines
430 B
Ruby

# Require this file to build a testing environment.
require 'vendor/homebrew-fork/monkeypatch_pathname'
require 'vendor/homebrew-fork/utils'
require 'tmpdir'
TEST_TMPDIR = Dir.mktmpdir("homebrew_tests")
at_exit { FileUtils.remove_entry(TEST_TMPDIR) }
# Constants normally defined in global.rb
HOMEBREW_CACHE = Pathname.new(TEST_TMPDIR).join('cache')
HOMEBREW_USER_AGENT = 'Homebrew'
HOMEBREW_CURL_ARGS = '-fsLA'