diff options
| author | Xu Cheng | 2014-12-31 16:32:55 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-31 14:54:00 +0000 |
| commit | ed145f67d10e3a21b749c99669da1595450cde52 (patch) | |
| tree | 5a26abf1569d8d086edbd3f5e1ffc5427144ba30 /Library/Formula | |
| parent | 870424c8b723d0702ea4cc55ede8f7adae1c81b7 (diff) | |
| download | homebrew-ed145f67d10e3a21b749c99669da1595450cde52.tar.bz2 | |
a2ps: add test
Closes #35388.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/a2ps.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/a2ps.rb b/Library/Formula/a2ps.rb index 9d9d95bdb..aae13e7f1 100644 --- a/Library/Formula/a2ps.rb +++ b/Library/Formula/a2ps.rb @@ -23,4 +23,10 @@ class A2ps < Formula "--prefix=#{prefix}" system "make", "install" end + + test do + (testpath/"test.txt").write("Hello World!\n") + system "#{bin}/a2ps", "test.txt", "-o", "test.ps" + assert File.read("test.ps").start_with?("") + end end |
