tests: allow setting MACOS_VERSION from the environment

This makes it easy to test things that vary depending on this constant
without editing testing_env.rb.
This commit is contained in:
Jack Nagel 2013-03-09 17:35:31 -06:00
parent ed0a737a39
commit 8e530d861b

View File

@ -28,7 +28,7 @@ HOMEBREW_CURL_ARGS = '-fsLA'
HOMEBREW_VERSION = '0.9-test' HOMEBREW_VERSION = '0.9-test'
MACOS = true MACOS = true
MACOS_VERSION = 10.6 MACOS_VERSION = ENV.fetch('MACOS_VERSION', 10.6)
MACOS_FULL_VERSION = '10.6.8' MACOS_FULL_VERSION = '10.6.8'
%w{Library/Formula Library/ENV}.each do |d| %w{Library/Formula Library/ENV}.each do |d|