diff options
| author | Jack Nagel | 2015-06-17 20:04:21 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-06-17 20:04:21 -0400 |
| commit | 38974ed6b52cd65e6ab6e6b150a6b00cd80bbc4f (patch) | |
| tree | b2e753dfc22d062414407b58ba249a09d9e2a406 /Library/Homebrew/test | |
| parent | 7edf004ff447a468d164326c6231a8cea68895f9 (diff) | |
| download | brew-38974ed6b52cd65e6ab6e6b150a6b00cd80bbc4f.tar.bz2 | |
Run tests for both build environments
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_ENV.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Library/Homebrew/test/test_ENV.rb b/Library/Homebrew/test/test_ENV.rb index a40448f77..1e0568604 100644 --- a/Library/Homebrew/test/test_ENV.rb +++ b/Library/Homebrew/test/test_ENV.rb @@ -1,10 +1,9 @@ require 'testing_env' require 'extend/ENV' -class EnvironmentTests < Homebrew::TestCase +module SharedEnvTests def setup @env = {}.extend(EnvActivation) - @env.activate_extensions! end def test_switching_compilers @@ -105,9 +104,7 @@ class EnvironmentTests < Homebrew::TestCase @env.prepend_path 'FOO', '/bin' assert_equal "/bin#{File::PATH_SEPARATOR}/usr/bin", @env['FOO'] end -end -module SharedEnvTests def test_switching_compilers_updates_compiler [:clang, :llvm, :gcc, :gcc_4_0].each do |compiler| @env.send(compiler) @@ -128,7 +125,8 @@ class StdenvTests < Homebrew::TestCase include SharedEnvTests def setup - @env = {}.extend(Stdenv) + super + @env.extend(Stdenv) end end @@ -136,7 +134,8 @@ class SuperenvTests < Homebrew::TestCase include SharedEnvTests def setup - @env = {}.extend(Superenv) + super + @env.extend(Superenv) end def test_initializes_deps |
