diff options
| author | Mike Naberezny | 2014-06-20 14:28:59 -0700 |
|---|---|---|
| committer | Jack Nagel | 2014-06-20 20:03:42 -0500 |
| commit | bd8f5443cec92356742c9318a21730afda22c57b (patch) | |
| tree | 2a6f4c930a3a4396331e436f3010c4ea409a9dd8 /Library/Formula | |
| parent | d79c896657e94856f8bd5105515c8addfff5af35 (diff) | |
| download | homebrew-bd8f5443cec92356742c9318a21730afda22c57b.tar.bz2 | |
ddate: add test
Closes #30318.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ddate.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/ddate.rb b/Library/Formula/ddate.rb index 2fd9ab8bc..ad8322ac7 100644 --- a/Library/Formula/ddate.rb +++ b/Library/Formula/ddate.rb @@ -17,4 +17,10 @@ class Ddate < Formula bin.install "ddate" man1.install "ddate.1" end + + test do + out = `#{bin}/ddate 20 6 2014` + assert_equal "Sweetmorn, Confusion 25, 3180 YOLD\n", out + assert_equal 0, $?.exitstatus + end end |
