aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-03-09 17:35:31 -0600
committerJack Nagel2013-03-09 17:38:49 -0600
commit8e530d861bec49f8a61b49a7573f273362f17351 (patch)
treee7a1b91910c4b83c107efa138d9001e18551cfc3 /Library
parented0a737a39362ec0ea66c35be30936d906baaae6 (diff)
downloadbrew-8e530d861bec49f8a61b49a7573f273362f17351.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/testing_env.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index 7206a71f0..66788801f 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -28,7 +28,7 @@ HOMEBREW_CURL_ARGS = '-fsLA'
HOMEBREW_VERSION = '0.9-test'
MACOS = true
-MACOS_VERSION = 10.6
+MACOS_VERSION = ENV.fetch('MACOS_VERSION', 10.6)
MACOS_FULL_VERSION = '10.6.8'
%w{Library/Formula Library/ENV}.each do |d|