update test for Homebrew/homebrew-emacs#158
Closes Homebrew/homebrew#48131. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
parent
0cde5dd060
commit
b8547eab2c
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user