aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/yajl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/yajl.rb')
-rw-r--r--Library/Formula/yajl.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Formula/yajl.rb b/Library/Formula/yajl.rb
index b8fcee65d..d88b3d67e 100644
--- a/Library/Formula/yajl.rb
+++ b/Library/Formula/yajl.rb
@@ -24,8 +24,7 @@ class Yajl < Formula
end
test do
- output = `echo "[0,1,2,3]" | '#{bin}/json_verify'`
- assert $?.success?
- assert_match /valid/i, output.strip
+ output = pipe_output("#{bin}/json_verify", "[0,1,2,3]").strip
+ assert_equal "JSON is valid", output
end
end