aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike Naberezny2014-04-13 17:42:45 -0700
committerMisty De Meo2014-04-13 17:53:44 -0700
commit46a69afc5386158b894ab98e4bdc30f8cfab6415 (patch)
tree7572810495dc1e1c72bd6e1b98dc56eeb5b182e1 /Library/Formula
parent7e7231911af9e97d2281628befbdc9318968ea63 (diff)
downloadhomebrew-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.rb12
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