mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-16 22:06:43 -06:00
* 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
13 lines
430 B
Ruby
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'
|