mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-29 20:29:40 -05:00
unac: improve test
This commit is contained in:
1 parent
48b91571c1
commit
fbfc9b14bc
1 file changed
+5
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user