From 9821316ec17a19d817953cc9703dd57cd3d9ae5c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 28 May 2014 18:48:38 -0500 Subject: [PATCH] Remove unused method and associated test fixtures --- Library/Homebrew/exceptions.rb | 4 ---- .../Homebrew/test/tarballs/configure_fails.tar.gz | Bin 196 -> 0 bytes Library/Homebrew/test/test_formula_install.rb | 14 -------------- Library/Homebrew/test/testball.rb | 14 -------------- 4 files changed, 32 deletions(-) delete mode 100755 Library/Homebrew/test/tarballs/configure_fails.tar.gz diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 7b6268f8c7..0b0bf632f4 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -164,10 +164,6 @@ class BuildError < Homebrew::InstallationError super formula, "Failed executing: #{command} #{args}" end - def was_running_configure? - @command == './configure' - end - def issues @issues ||= fetch_issues end diff --git a/Library/Homebrew/test/tarballs/configure_fails.tar.gz b/Library/Homebrew/test/tarballs/configure_fails.tar.gz deleted file mode 100755 index 8be00ee467850185a33d01090f733af074df42b0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 196 zcmV;#06YI5iwFq0KL1Mq17mM)W@%@2a%Ep;VQFl0E_7jX0PT`X4uUWchP&=501r_5 zz5&-Tr50$SC81zEzBP(Q7P7G#W53Oxc_cIKKe~5~ZKuI(8)f$%fe4fV$@x{qv)%w0 zQz-?Nn2?aijF$xP7|Se~{HTU7Qti~?_@ZyEK0jpEA3-ntzsGN!vFbl#5C7REj|IaF yeB=}V-2Y9EYU@y~dn@0ds=;&2Ac(r=3Z2mk<3^;?wy diff --git a/Library/Homebrew/test/test_formula_install.rb b/Library/Homebrew/test/test_formula_install.rb index b3184fe8cd..d8880c0eb8 100644 --- a/Library/Homebrew/test/test_formula_install.rb +++ b/Library/Homebrew/test/test_formula_install.rb @@ -14,20 +14,6 @@ class TestScriptFileFormula < ScriptFileFormula end -class ConfigureTests < Test::Unit::TestCase - def teardown - HOMEBREW_CACHE.rmtree - end - - def test_detect_failed_configure - f = ConfigureFails.new - shutup { f.brew { f.install } } - rescue BuildError => e - assert e.was_running_configure? - end -end - - class InstallTests < Test::Unit::TestCase def teardown HOMEBREW_CACHE.rmtree diff --git a/Library/Homebrew/test/testball.rb b/Library/Homebrew/test/testball.rb index 645585cb1c..be965e25fe 100644 --- a/Library/Homebrew/test/testball.rb +++ b/Library/Homebrew/test/testball.rb @@ -13,17 +13,3 @@ class TestBall < Formula prefix.install "libexec" end end - -class ConfigureFails < Formula - url "file:///#{TEST_FOLDER}/tarballs/configure_fails.tar.gz" - version '1.0.0' - sha1 'b36c65e5de86efef1b3a7e9cf78a98c186b400b3' - - def initialize(name="configure_fails", path=nil) - super - end - - def install - system "./configure" - end -end