anime-downloader: fix test

This commit is contained in:
Alexander Bayandin 2019-12-19 14:53:55 +00:00
parent 25f2bbf1d0
commit a99fca2f24

View file

@ -115,8 +115,8 @@ class AnimeDownloader < Formula
test do test do
assert_match "anime, version 4.0.1", shell_output("#{bin}/anime --version") assert_match "anime, version 4.0.1", shell_output("#{bin}/anime --version")
system "sh", "-c", "echo 1 | #{bin}/anime watch -n Kaguya-sama --provider kissanime; echo 1 | #{bin}/anime watch -l | grep 0/12 > out" system "sh", "-c", "echo 1 | #{bin}/anime watch -n Kaguya-sama --provider twist.moe; echo 1 | #{bin}/anime watch -l | grep 0/12 > out"
assert_match " 1 | Kaguya-sama: Love is War | 0/12 |", (testpath/"out").read assert_match " 1 | kaguya-sama-wa-kokurasetai-tensai-t | 0/12 |", (testpath/"out").read
system "sh", "-c", "echo y | anime watch -r Kaguya-sama" system "sh", "-c", "echo y | anime watch -r Kaguya-sama"
end end
end end