homebrew-core/Formula/ascii.rb
Mike Naberezny b8ae067b5f ascii: add test
Closes Homebrew/homebrew#26443.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-05 23:02:59 -08:00

19 lines
426 B
Ruby

require 'formula'
class Ascii < Formula
homepage 'http://www.catb.org/~esr/ascii/'
url 'http://www.catb.org/~esr/ascii/ascii-3.14.tar.gz'
sha1 'fd8281078c1b3d52d4080ced1855f4f540d5a501'
def install
system "make"
bin.install "ascii"
man1.install 'ascii.1'
end
test do
output = `#{bin}/ascii 0x0a`
assert output.include?("Official name: Line Feed")
assert_equal 0, $?.exitstatus
end
end