diff options
| author | Mike Naberezny | 2014-02-11 20:31:16 -0800 | 
|---|---|---|
| committer | Adam Vandenberg | 2014-02-11 21:00:55 -0800 | 
| commit | 668bd62f7f0c9836c3b19c337094389a6f95ede8 (patch) | |
| tree | f859861eadaf8f54440a22215f49aaa6935ffd2b | |
| parent | f9f8d70a26a28a1fbfff22197c5aed3bdf6e11f1 (diff) | |
| download | homebrew-668bd62f7f0c9836c3b19c337094389a6f95ede8.tar.bz2 | |
lorem: add test
Closes #26647.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/lorem.rb | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/Library/Formula/lorem.rb b/Library/Formula/lorem.rb index 13f84b4fc..c8ac13ef8 100644 --- a/Library/Formula/lorem.rb +++ b/Library/Formula/lorem.rb @@ -10,4 +10,10 @@ class Lorem < Formula      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 | 
