yajl: add a test

Closes Homebrew/homebrew#27244.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Ted Pennings 2014-03-05 22:34:02 -05:00 committed by Adam Vandenberg
parent d1c8478507
commit a5d9f13924

View file

@ -21,4 +21,10 @@ class Yajl < Formula
system "make install"
(include/'yajl').install Dir['src/api/*.h']
end
test do
output = `echo "[0,1,2,3]" | '#{bin}/json_verify'`
assert $?.success?
assert_match /valid/i, output.strip
end
end