livecheck: update URL in test

Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
This commit is contained in:
Nanda H Krishna 2020-08-29 03:23:10 +05:30 committed by GitHub
parent 062156365b
commit 3cab6042d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,11 +138,11 @@ describe Homebrew::Livecheck do
end
describe "::preprocess_url" do
let(:url) { "https://github.s3.amazonaws.com/Homebrew/brew/releases/latest" }
let(:url) { "https://github.s3.amazonaws.com/downloads/Homebrew/brew/1.0.0.tar.gz" }
it "returns the preprocessed URL for livecheck to use" do
expect(livecheck.preprocess_url(url))
.to eq("https://github.com/Homebrew/brew/releases/latest")
.to eq("https://github.com/Homebrew/brew.git")
end
end