From ff86702dd85eab420f6f58e8dcf8375dae4b22b9 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 4 May 2014 12:12:41 -0700 Subject: use test helpers --- Library/Formula/enscript.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Library/Formula/enscript.rb') diff --git a/Library/Formula/enscript.rb b/Library/Formula/enscript.rb index 10edb4844..78f45d703 100644 --- a/Library/Formula/enscript.rb +++ b/Library/Formula/enscript.rb @@ -19,9 +19,7 @@ class Enscript < Formula end test do - require 'open3' - Open3.popen3("#{bin}/enscript", "-V") do |_, stdout, _| - assert_match /GNU Enscript #{Regexp.escape(version)}/, stdout.read - end + assert_match /GNU Enscript #{Regexp.escape(version)}/, + shell_output("#{bin}/enscript -V") end end -- cgit v1.2.3