Update tests

This commit is contained in:
Bevan Kay 2022-12-28 11:49:37 +11:00
parent 96574c831f
commit e0f067bab8
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57
2 changed files with 4 additions and 2 deletions

View File

@ -108,10 +108,12 @@ describe Homebrew::Livecheck::Strategy::ExtractPlist do
end end
describe "::find_versions" do describe "::find_versions" do
it "can be used with an installer artifact" do it "returns a for an installer artifact" do
cask = Cask::CaskLoader.load(cask_path("livecheck/installer-manual-livecheck")) cask = Cask::CaskLoader.load(cask_path("livecheck/installer-manual-livecheck"))
installer_artifact = cask.artifacts.first
expect(extract_plist.find_versions(cask: cask)[:matches].values).to eq(["1.2.3"]) expect(installer_artifact).to be_a(Cask::Artifact::Installer)
expect(installer_artifact.path).to be_a(Pathname)
end end
end end
end end