aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-05-28 18:48:38 -0500
committerJack Nagel2014-05-28 18:48:38 -0500
commit2bd6daf65736facad4800a77aa8937cd6622cfe8 (patch)
tree774e85f6929b492080964a42c690222642cc2d15
parent51740accacf804faaa97c9d724eef01986ed67f2 (diff)
downloadhomebrew-2bd6daf65736facad4800a77aa8937cd6622cfe8.tar.bz2
Remove unused method and associated test fixtures
-rw-r--r--Library/Homebrew/exceptions.rb4
-rwxr-xr-xLibrary/Homebrew/test/tarballs/configure_fails.tar.gzbin196 -> 0 bytes
-rw-r--r--Library/Homebrew/test/test_formula_install.rb14
-rw-r--r--Library/Homebrew/test/testball.rb14
4 files changed, 0 insertions, 32 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 7b6268f8c..0b0bf632f 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 8be00ee46..000000000
--- a/Library/Homebrew/test/tarballs/configure_fails.tar.gz
+++ /dev/null
Binary files differ
diff --git a/Library/Homebrew/test/test_formula_install.rb b/Library/Homebrew/test/test_formula_install.rb
index b3184fe8c..d8880c0eb 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 645585cb1..be965e25f 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