aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlex Dunn2016-01-17 17:17:42 -0800
committerAlex Dunn2016-01-20 11:42:36 -0800
commitb8547eab2c9ed2b75e767993b9a20d5f100ae08f (patch)
tree35d22c0057c7bc1624cdbbb1bb37b7c55712372a /Library
parent0cde5dd06048f00d17abf3c009c86eced3f68c09 (diff)
downloadbrew-b8547eab2c9ed2b75e767993b9a20d5f100ae08f.tar.bz2
update test for Homebrew/homebrew-emacs#158
Closes Homebrew/homebrew#48131. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_formula_installer.rb4
-rw-r--r--Library/Homebrew/test/testball.rb1
2 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_formula_installer.rb b/Library/Homebrew/test/test_formula_installer.rb
index 643712d0c..1cdf54575 100644
--- a/Library/Homebrew/test/test_formula_installer.rb
+++ b/Library/Homebrew/test/test_formula_installer.rb
@@ -40,6 +40,8 @@ class InstallTests < Homebrew::TestCase
def test_a_basic_install
temporary_install(Testball.new) do |f|
# Test that things made it into the Keg
+ assert_predicate f.prefix+"readme", :exist?
+
assert_predicate f.bin, :directory?
assert_equal 3, f.bin.children.length
@@ -48,6 +50,8 @@ class InstallTests < Homebrew::TestCase
refute_predicate f.prefix+"main.c", :exist?
+ refute_predicate f.prefix+"license", :exist?
+
# Test that things make it into the Cellar
keg = Keg.new f.prefix
keg.link
diff --git a/Library/Homebrew/test/testball.rb b/Library/Homebrew/test/testball.rb
index 6329f6437..c1b09111b 100644
--- a/Library/Homebrew/test/testball.rb
+++ b/Library/Homebrew/test/testball.rb
@@ -10,5 +10,6 @@ class Testball < Formula
def install
prefix.install "bin"
prefix.install "libexec"
+ Dir.chdir "doc"
end
end