Test https as well

This commit is contained in:
Batuhan Taskaya 2021-12-21 20:33:23 +03:00
parent c97ec93a19
commit 5a83a9ebc4

View File

@ -75,6 +75,8 @@ class Httpie < Formula
test do test do
# shell_output() already checks the status code # shell_output() already checks the status code
shell_output("#{bin}/httpie -v") shell_output("#{bin}/httpie -v")
shell_output("#{bin}/https -v")
shell_output("#{bin}/http -v")
raw_url = "https://raw.githubusercontent.com/Homebrew/homebrew-core/HEAD/Formula/httpie.rb" raw_url = "https://raw.githubusercontent.com/Homebrew/homebrew-core/HEAD/Formula/httpie.rb"
assert_match "PYTHONPATH", shell_output("#{bin}/http --ignore-stdin #{raw_url}") assert_match "PYTHONPATH", shell_output("#{bin}/http --ignore-stdin #{raw_url}")