unac: improve test
This commit is contained in:
parent
eef05263c7
commit
67949d44c0
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue