homebrew-core/Formula/lorem.rb
Mike Naberezny 09324778ea lorem: add test
Closes Homebrew/homebrew#26647.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-11 21:00:55 -08:00

19 lines
474 B
Ruby

require 'formula'
class Lorem < Formula
homepage 'http://code.google.com/p/lorem/'
url 'http://lorem.googlecode.com/svn-history/r4/trunk/lorem', :using => :curl
version '0.6.1'
sha1 'aa6ef66e5ee1151397f19b358d772af316cf333b'
def install
inreplace "lorem", "!/usr/bin/python", "!/usr/bin/env python"
bin.install "lorem"
end
test do
output = `#{bin}/lorem -n 2`
assert_equal "lorem ipsum\n", output
assert_equal 0, $?.exitstatus
end
end