homebrew-cask-versions/spec/support/homebrew_testing_environment.rb
Roland Walker b40b0c99e1 strip constants from homebrew-fork global.rb
and corresponding testing_env.rb.
* recast HOMEBREW_BREW_FILE as Hbc.homebrew_executable,
  defined in Hbc::Locations
* recast HOMEBREW_REPOSITORY as Hbc.homebrew_repository
* recast HOMEBREW_PREFIX as Hbc.homebrew_prefix
* remove HOMEBREW_LIBRARY
* recast existing Hbc.tapspath as Hbc.homebrew_tapspath
  to match new methods

fixes #8705
2015-01-07 09:09:53 -05:00

12 lines
309 B
Ruby

module HomebrewTestingEnvironment
def self.included(base)
# force some environment variables
ENV['HOMEBREW_NO_EMOJI']='1'
# require homebrew testing env
with_disabled_at_exit do
# todo: removeme, this is transitional
require 'vendor/homebrew-fork/testing_env'
end
end
end