diff options
| author | Mike McQuaid | 2016-07-06 11:07:24 +0100 |
|---|---|---|
| committer | GitHub | 2016-07-06 11:07:24 +0100 |
| commit | 3a127e405e45a4d95a809651553ff4a30ed95e3d (patch) | |
| tree | f84c3f7b9e572bcdc6faf4f7cc4d4a95cddf5542 /Library/Homebrew/test | |
| parent | 11624b9a7da00448e660f1454121a63b3d401729 (diff) | |
| download | brew-3a127e405e45a4d95a809651553ff4a30ed95e3d.tar.bz2 | |
development_tools: add installed? method. (#455)
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_formula_installer.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_formula_installer_bottle.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/test/test_formula_installer.rb b/Library/Homebrew/test/test_formula_installer.rb index 9602ec7c1..55b456fba 100644 --- a/Library/Homebrew/test/test_formula_installer.rb +++ b/Library/Homebrew/test/test_formula_installer.rb @@ -62,7 +62,7 @@ class InstallTests < Homebrew::TestCase end def test_bottle_unneeded_formula_install - MacOS.stubs(:has_apple_developer_tools?).returns(false) + DevelopmentTools.stubs(:installed?).returns(false) formula = Testball.new formula.stubs(:bottle_unneeded?).returns(true) diff --git a/Library/Homebrew/test/test_formula_installer_bottle.rb b/Library/Homebrew/test/test_formula_installer_bottle.rb index 12306c229..d83c856b7 100644 --- a/Library/Homebrew/test/test_formula_installer_bottle.rb +++ b/Library/Homebrew/test/test_formula_installer_bottle.rb @@ -36,7 +36,7 @@ class InstallBottleTests < Homebrew::TestCase end def test_a_basic_bottle_install - MacOS.stubs(:has_apple_developer_tools?).returns(false) + DevelopmentTools.stubs(:installed?).returns(false) temporary_bottle_install(TestballBottle.new) do |f| # Copied directly from test_formula_installer.rb as we expect @@ -59,7 +59,7 @@ class InstallBottleTests < Homebrew::TestCase end def test_build_tools_error - MacOS.stubs(:has_apple_developer_tools?).returns(false) + DevelopmentTools.stubs(:installed?).returns(false) # Testball doesn't have a bottle block, so use it to test this behavior formula = Testball.new |
