diff options
| author | Adam Vandenberg | 2014-05-04 12:12:41 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-08-01 07:58:10 -0700 |
| commit | ff86702dd85eab420f6f58e8dcf8375dae4b22b9 (patch) | |
| tree | e0071c9d3604ab8d311679aa77ce9cce90da962f /Library/Formula/jshon.rb | |
| parent | 1dc876667538fb33ebc9eb30edd3bc9b530592a6 (diff) | |
| download | homebrew-ff86702dd85eab420f6f58e8dcf8375dae4b22b9.tar.bz2 | |
use test helpers
Diffstat (limited to 'Library/Formula/jshon.rb')
| -rw-r--r-- | Library/Formula/jshon.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Library/Formula/jshon.rb b/Library/Formula/jshon.rb index 75b3957c1..b360c66c0 100644 --- a/Library/Formula/jshon.rb +++ b/Library/Formula/jshon.rb @@ -15,11 +15,6 @@ class Jshon < Formula end test do - require 'open3' - Open3.popen3("#{bin}/jshon", "-l") do |stdin, stdout, _| - stdin.write("[true,false,null]") - stdin.close - assert_equal "3", stdout.read.strip - end + assert_equal "3", pipe_output("#{bin}/jshon -l", "[true,false,null]").strip end end |
