github_spec: Update PR number with unexpired artifacts

This commit is contained in:
Alexander Bayandin 2021-06-24 13:29:44 +01:00
parent 47d5150c33
commit d55cbeac78
No known key found for this signature in database
GPG Key ID: 444BD9CA93262701

View File

@ -77,16 +77,16 @@ describe GitHub do
it "fails to find artifacts that don't exist" do
expect {
described_class.get_artifact_url(
described_class.get_workflow_run("Homebrew", "homebrew-core", 51971, artifact_name: "false_bottles"),
described_class.get_workflow_run("Homebrew", "homebrew-core", 79751, artifact_name: "false_bottles"),
)
}.to raise_error(/No artifact .+ was found/)
end
it "gets an artifact link" do
url = described_class.get_artifact_url(
described_class.get_workflow_run("Homebrew", "homebrew-core", 51971, artifact_name: "bottles"),
described_class.get_workflow_run("Homebrew", "homebrew-core", 79751, artifact_name: "bottles"),
)
expect(url).to eq("https://api.github.com/repos/Homebrew/homebrew-core/actions/artifacts/3557392/zip")
expect(url).to eq("https://api.github.com/repos/Homebrew/homebrew-core/actions/artifacts/69422207/zip")
end
end