Remove unused method and associated test fixtures
This commit is contained in:
parent
56b041ca25
commit
9821316ec1
@ -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
|
||||
|
Binary file not shown.
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user