Fix appcast spec.
This commit is contained in:
parent
3f4706d9e6
commit
f0ece0432d
@ -613,46 +613,46 @@ describe Cask::Audit, :cask do
|
||||
end
|
||||
end
|
||||
|
||||
describe "hosting with appcast checks" do
|
||||
let(:message) { /please add an appcast/ }
|
||||
describe "hosting with livecheck checks" do
|
||||
let(:message) { /please add a livecheck/ }
|
||||
|
||||
context "when the download does not use hosting with an appcast" do
|
||||
context "when the download does not use hosting with a livecheck" do
|
||||
let(:cask_token) { "basic-cask" }
|
||||
|
||||
it { is_expected.not_to fail_with(message) }
|
||||
end
|
||||
|
||||
context "when the download is hosted on SourceForge and has an appcast" do
|
||||
context "when the download is hosted on SourceForge and has a livecheck" do
|
||||
let(:cask_token) { "sourceforge-with-appcast" }
|
||||
|
||||
it { is_expected.not_to fail_with(message) }
|
||||
end
|
||||
|
||||
context "when the download is hosted on SourceForge and does not have an appcast" do
|
||||
context "when the download is hosted on SourceForge and does not have a livecheck" do
|
||||
let(:cask_token) { "sourceforge-correct-url-format" }
|
||||
|
||||
it { is_expected.to fail_with(message) }
|
||||
end
|
||||
|
||||
context "when the download is hosted on DevMate and has an appcast" do
|
||||
context "when the download is hosted on DevMate and has a livecheck" do
|
||||
let(:cask_token) { "devmate-with-appcast" }
|
||||
|
||||
it { is_expected.not_to fail_with(message) }
|
||||
end
|
||||
|
||||
context "when the download is hosted on DevMate and does not have an appcast" do
|
||||
context "when the download is hosted on DevMate and does not have a livecheck" do
|
||||
let(:cask_token) { "devmate-without-appcast" }
|
||||
|
||||
it { is_expected.to fail_with(message) }
|
||||
end
|
||||
|
||||
context "when the download is hosted on HockeyApp and has an appcast" do
|
||||
context "when the download is hosted on HockeyApp and has a livecheck" do
|
||||
let(:cask_token) { "hockeyapp-with-appcast" }
|
||||
|
||||
it { is_expected.not_to fail_with(message) }
|
||||
end
|
||||
|
||||
context "when the download is hosted on HockeyApp and does not have an appcast" do
|
||||
context "when the download is hosted on HockeyApp and does not have a livecheck" do
|
||||
let(:cask_token) { "hockeyapp-without-appcast" }
|
||||
|
||||
it { is_expected.to fail_with(message) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user