diff --git a/Library/Homebrew/test/test_formula_installer.rb b/Library/Homebrew/test/test_formula_installer.rb index 643712d0cb..1cdf54575b 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 6329f64370..c1b09111b9 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