diff options
| author | Jack Nagel | 2013-08-19 12:33:00 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-19 12:33:00 -0500 |
| commit | a03120868f1e7f2022db70046e92ffa8e197cd48 (patch) | |
| tree | 4144a93412d110bf44bb4983cc4d545802d9992f /Library/Homebrew/test | |
| parent | e0574b854e2c07433642699c20252dc2ba3d5cc4 (diff) | |
| download | brew-a03120868f1e7f2022db70046e92ffa8e197cd48.tar.bz2 | |
No longer call ENV.userpaths! in requirements
Instead we use which with a custom PATH.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_requirement.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_requirement.rb b/Library/Homebrew/test/test_requirement.rb index a2e50126e..cba27d788 100644 --- a/Library/Homebrew/test/test_requirement.rb +++ b/Library/Homebrew/test/test_requirement.rb @@ -50,12 +50,10 @@ class RequirementTests < Test::Unit::TestCase def test_satisfy_sets_up_build_env_by_default req = Class.new(Requirement) do - env :userpaths satisfy { true } end.new ENV.expects(:with_build_environment).yields.returns(true) - ENV.expects(:userpaths!) assert req.satisfied? end @@ -66,7 +64,6 @@ class RequirementTests < Test::Unit::TestCase end.new ENV.expects(:with_build_environment).never - ENV.expects(:userpaths!).never assert req.satisfied? end @@ -78,7 +75,6 @@ class RequirementTests < Test::Unit::TestCase end.new ENV.expects(:with_build_environment).yields.returns(which_path) - ENV.expects(:userpaths!) ENV.expects(:append).with("PATH", which_path.parent, ":") req.satisfied? |
