aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-04-23 21:00:34 +0200
committerMike McQuaid2015-04-24 18:20:43 +0100
commitb8be562b55f3d8ae3455efccade67c11ae1bf278 (patch)
treed06c76deceabf84da22446aa95bf2d140c25229f /Library
parent9f87375abecba908a7f19033762d5c0ec04f899c (diff)
downloadhomebrew-b8be562b55f3d8ae3455efccade67c11ae1bf278.tar.bz2
kes: test added
Closes #38983. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/kes.rb28
1 files changed, 17 insertions, 11 deletions
diff --git a/Library/Formula/kes.rb b/Library/Formula/kes.rb
index 6a42efab0..a91c308f2 100644
--- a/Library/Formula/kes.rb
+++ b/Library/Formula/kes.rb
@@ -1,18 +1,24 @@
-require 'formula'
-
class Kes < Formula
- homepage 'https://github.com/epilnivek/kes'
- url 'https://github.com/epilnivek/kes/archive/v0.9.tar.gz'
- sha1 '483ff8c76372bc12a852ae10d8d5edc7591cfe09'
+ homepage "https://github.com/epilnivek/kes"
+ url "https://github.com/epilnivek/kes/archive/v0.9.tar.gz"
+ sha256 "d0db16ba7892d9692cacd552d684f03a9d0333ba0e7b629a998fa9c127ef050e"
- head 'https://github.com/epilnivek/kes.git'
+ head "https://github.com/epilnivek/kes.git"
- depends_on 'readline'
+ depends_on "readline"
def install
- system "./configure", "--prefix=#{prefix}", "--mandir=#{man}", "--with-readline"
- system "make"
- bin.install 'es'
- man1.install 'doc/es.1'
+ system "./configure", "--prefix=#{prefix}",
+ "--mandir=#{man}",
+ "--with-readline"
+
+ bin.mkpath
+ man1.mkpath
+
+ system "make", "install"
+ end
+
+ test do
+ assert_equal "Homebrew\n", shell_output("#{bin}/es -c 'echo Homebrew'")
end
end