diff options
| author | Mike Naberezny | 2014-04-13 17:42:45 -0700 |
|---|---|---|
| committer | Misty De Meo | 2014-04-13 17:53:44 -0700 |
| commit | 46a69afc5386158b894ab98e4bdc30f8cfab6415 (patch) | |
| tree | 7572810495dc1e1c72bd6e1b98dc56eeb5b182e1 /Library/Formula | |
| parent | 7e7231911af9e97d2281628befbdc9318968ea63 (diff) | |
| download | homebrew-46a69afc5386158b894ab98e4bdc30f8cfab6415.tar.bz2 | |
wdiff: add test
Closes #28382.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/wdiff.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/wdiff.rb b/Library/Formula/wdiff.rb index 9e6106eae..80874a4ab 100644 --- a/Library/Formula/wdiff.rb +++ b/Library/Formula/wdiff.rb @@ -14,4 +14,16 @@ class Wdiff < Formula "--enable-experimental" system "make install" end + + test do + a = testpath/"a.txt" + a.write "The missing package manager for OS X" + + b = testpath/"b.txt" + b.write "The package manager for OS X" + + out = `#{bin}/wdiff #{a} #{b}` + assert_equal "The [-missing-] package manager for OS X", out + assert_equal 1, $?.exitstatus + end end |
