diff options
Diffstat (limited to 'Library/Formula/enscript.rb')
| -rw-r--r-- | Library/Formula/enscript.rb | 6 |
1 files changed, 2 insertions, 4 deletions
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 |
