Remove unused method and associated test fixtures

This commit is contained in:
Jack Nagel 2014-05-28 18:48:38 -05:00
parent 56b041ca25
commit 9821316ec1
4 changed files with 0 additions and 32 deletions

View File

@ -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

View File

@ -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

View File

@ -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