diff options
| author | Jack Nagel | 2013-01-19 20:45:57 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-21 17:24:10 -0600 |
| commit | 3270fd2cd94e6ca637bbae5f2acfc9c1824d76e2 (patch) | |
| tree | 6bcf99f0ffd48e0563e74b0e67665a7df47c6a7d /Library/Homebrew/test | |
| parent | 05fedd5c98f687b6cf95935a06d4660821d2ad2b (diff) | |
| download | homebrew-3270fd2cd94e6ca637bbae5f2acfc9c1824d76e2.tar.bz2 | |
ENV.with_build_environment
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_ENV.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_ENV.rb b/Library/Homebrew/test/test_ENV.rb index 8e69cb6f0..1a1dd922b 100644 --- a/Library/Homebrew/test/test_ENV.rb +++ b/Library/Homebrew/test/test_ENV.rb @@ -26,4 +26,13 @@ class EnvironmentTests < Test::Unit::TestCase assert_nil ENV['LD'] assert_equal ENV['OBJC'], ENV['CC'] end + + def test_with_build_environment + before = ENV.to_hash + ENV.with_build_environment do + ENV['foo'] = 'bar' + end + assert_nil ENV['foo'] + assert_equal before, ENV.to_hash + end end |
