diff options
| author | Jack Nagel | 2013-03-25 13:18:14 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-26 00:02:30 -0500 |
| commit | fa490a2636893da104b1124df5e74bceba859306 (patch) | |
| tree | 4f7e43c3eac2c6233667991c1aa3206df7d7cba5 /Library | |
| parent | e1147b9e20602ec3276d2960f9412c8d3b5da552 (diff) | |
| download | homebrew-fa490a2636893da104b1124df5e74bceba859306.tar.bz2 | |
basex: improve test
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/basex.rb | 7 |
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 |
