cclive: add test

This commit is contained in:
Dominyk Tiller 2017-04-05 20:14:42 +01:00 committed by ilovezfs
parent 57da8a6b2c
commit 84c7f2a313

View file

@ -24,4 +24,10 @@ class Cclive < Formula
"--prefix=#{prefix}"
system "make", "install"
end
test do
url = "https://youtu.be/VaVZL7F6vqU"
output = shell_output("#{bin}/cclive --no-download #{url} 2>&1")
assert_match "Martin Luther King Jr Day", output
end
end