Closes Homebrew/homebrew#48131.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
Alex Dunn 2016-01-17 17:17:42 -08:00
parent 0cde5dd060
commit b8547eab2c
2 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,8 @@ class InstallTests < Homebrew::TestCase
def test_a_basic_install def test_a_basic_install
temporary_install(Testball.new) do |f| temporary_install(Testball.new) do |f|
# Test that things made it into the Keg # Test that things made it into the Keg
assert_predicate f.prefix+"readme", :exist?
assert_predicate f.bin, :directory? assert_predicate f.bin, :directory?
assert_equal 3, f.bin.children.length 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+"main.c", :exist?
refute_predicate f.prefix+"license", :exist?
# Test that things make it into the Cellar # Test that things make it into the Cellar
keg = Keg.new f.prefix keg = Keg.new f.prefix
keg.link keg.link

View File

@ -10,5 +10,6 @@ class Testball < Formula
def install def install
prefix.install "bin" prefix.install "bin"
prefix.install "libexec" prefix.install "libexec"
Dir.chdir "doc"
end end
end end