diff --git a/Library/Formula/unac.rb b/Library/Formula/unac.rb index e1c2f4a002..db7acc32fd 100644 --- a/Library/Formula/unac.rb +++ b/Library/Formula/unac.rb @@ -40,8 +40,11 @@ class Unac < Formula system "make install" end - def test - `#{bin}/unaccent utf-8 fóó`.chomp == 'foo' + test do + require 'open3' + Open3.popen3("#{bin}/unaccent", "utf-8", "fóó") do |_, stdout, _| + "foo" == stdout.read.strip + end end end