aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/unac.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/unac.rb b/Library/Formula/unac.rb
index e1c2f4a00..db7acc32f 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