From fa490a2636893da104b1124df5e74bceba859306 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 25 Mar 2013 13:18:14 -0500 Subject: basex: improve test --- Library/Formula/basex.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/basex.rb b/Library/Formula/basex.rb index ac61efcfe..4ce688329 100644 --- a/Library/Formula/basex.rb +++ b/Library/Formula/basex.rb @@ -15,7 +15,10 @@ class Basex < Formula bin.install_symlink Dir["#{libexec}/bin/*"] end - def test - system "#{bin}/basex", "'1 to 10'" + test do + require 'open3' + Open3.popen3("#{bin}/basex", "1 to 10") do |_, stdout, _| + "1 2 3 4 5 6 7 8 9 10" == stdout.read + end end end -- cgit v1.2.3