From 3a127e405e45a4d95a809651553ff4a30ed95e3d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 6 Jul 2016 11:07:24 +0100 Subject: development_tools: add installed? method. (#455) --- Library/Homebrew/test/test_formula_installer.rb | 2 +- Library/Homebrew/test/test_formula_installer_bottle.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Homebrew/test') 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 -- cgit v1.2.3