From b8547eab2c9ed2b75e767993b9a20d5f100ae08f Mon Sep 17 00:00:00 2001 From: Alex Dunn Date: Sun, 17 Jan 2016 17:17:42 -0800 Subject: [PATCH] update test for Homebrew/homebrew-emacs#158 Closes Homebrew/homebrew#48131. Signed-off-by: Alex Dunn --- Library/Homebrew/test/test_formula_installer.rb | 4 ++++ Library/Homebrew/test/testball.rb | 1 + 2 files changed, 5 insertions(+) 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