diff options
Diffstat (limited to 'Library/Formula/cayley.rb')
| -rw-r--r-- | Library/Formula/cayley.rb | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Library/Formula/cayley.rb b/Library/Formula/cayley.rb index c04cee66a..8042b97f1 100644 --- a/Library/Formula/cayley.rb +++ b/Library/Formula/cayley.rb @@ -117,18 +117,9 @@ class Cayley < Formula end test do - require 'open3' - touch "test.nt" - - Open3.popen3("#{bin}/cayley", "repl", "--dbpath=#{testpath}/test.nt") do |stdin, stdout, _| - stdin.write "graph.Vertex().All()" - stdin.close - - result = stdout.read.strip - - assert !result.include?("Error:") - assert result.include?("Elapsed time:") - end + result = pipe_output("#{bin}/cayley repl --dbpath=#{testpath}/test.nt", "graph.Vertex().All()") + assert !result.include?("Error:") + assert result.include?("Elapsed time:") end end |
