aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-03-25 13:18:14 -0500
committerJack Nagel2013-03-26 00:02:30 -0500
commitfa490a2636893da104b1124df5e74bceba859306 (patch)
tree4f7e43c3eac2c6233667991c1aa3206df7d7cba5 /Library
parente1147b9e20602ec3276d2960f9412c8d3b5da552 (diff)
downloadhomebrew-fa490a2636893da104b1124df5e74bceba859306.tar.bz2
basex: improve test
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/basex.rb7
1 files changed, 5 insertions, 2 deletions
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