aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlexis Hildebrandt2015-01-03 07:39:47 +0100
committerJack Nagel2015-01-12 20:50:25 -0500
commit61a0d69e010fb11012f1d600817613a1ddddaea9 (patch)
treee588da336021edcdcc6a6490a83e3c76a3480603 /Library
parentf53747e0b5e4a694c77e2e9b4c6a7fae3b766a50 (diff)
downloadhomebrew-61a0d69e010fb11012f1d600817613a1ddddaea9.tar.bz2
dvtm: modernize
Closes #35470. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/dvtm.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/dvtm.rb b/Library/Formula/dvtm.rb
index ebe9ddd3f..2d12d2f14 100644
--- a/Library/Formula/dvtm.rb
+++ b/Library/Formula/dvtm.rb
@@ -1,4 +1,4 @@
-require "formula"
+# encoding: UTF-8
class Dvtm < Formula
homepage "http://www.brain-dump.org/projects/dvtm/"
@@ -10,4 +10,10 @@ class Dvtm < Formula
ENV.append_to_cflags "-D_DARWIN_C_SOURCE"
system "make", "PREFIX=#{prefix}", "LIBS=-lc -lutil -lncurses", "install"
end
+
+ test do
+ result = shell_output("#{bin}/dvtm -v")
+ result.force_encoding("UTF-8") if result.respond_to?(:force_encoding)
+ assert_match /^dvtm-[0-9.]+ © 2007-\d{4} Marc André Tanner$/, result
+ end
end