Merge pull request #3994 from commitay/cask-audit-spec

cask audit_spec: rspec auto-corrects
This commit is contained in:
Mike McQuaid 2018-03-29 08:14:11 +01:00 committed by GitHub
commit ffc26a2dd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,16 +98,19 @@ describe Hbc::Audit, :cask do
context "when the Cask has no pkg stanza" do context "when the Cask has no pkg stanza" do
let(:cask_token) { "basic-cask" } let(:cask_token) { "basic-cask" }
it { should_not warn_with(error_msg) }
it { is_expected.not_to warn_with(error_msg) }
end end
context "when the Cask does not have allow_untrusted" do context "when the Cask does not have allow_untrusted" do
let(:cask_token) { "with-uninstall-pkgutil" } let(:cask_token) { "with-uninstall-pkgutil" }
it { should_not warn_with(error_msg) }
it { is_expected.not_to warn_with(error_msg) }
end end
context "when the Cask has allow_untrusted" do context "when the Cask has allow_untrusted" do
let(:cask_token) { "with-allow-untrusted" } let(:cask_token) { "with-allow-untrusted" }
it { is_expected.to warn_with(error_msg) } it { is_expected.to warn_with(error_msg) }
end end
end end
@ -406,16 +409,19 @@ describe Hbc::Audit, :cask do
context "when the Cask does not use GitHub releases" do context "when the Cask does not use GitHub releases" do
let(:cask_token) { "basic-cask" } let(:cask_token) { "basic-cask" }
it { should_not warn_with(error_msg) }
it { is_expected.not_to warn_with(error_msg) }
end end
context "when the Cask uses GitHub releases and has an appcast" do context "when the Cask uses GitHub releases and has an appcast" do
let(:cask_token) { "github-with-appcast" } let(:cask_token) { "github-with-appcast" }
it { should_not warn_with(error_msg) }
it { is_expected.not_to warn_with(error_msg) }
end end
context "when the Cask uses GitHub releases and does not have an appcast" do context "when the Cask uses GitHub releases and does not have an appcast" do
let(:cask_token) { "github-without-appcast" } let(:cask_token) { "github-without-appcast" }
it { is_expected.to warn_with(error_msg) } it { is_expected.to warn_with(error_msg) }
end end
end end
@ -425,16 +431,19 @@ describe Hbc::Audit, :cask do
context "when the Cask is :latest and does not have an appcast" do context "when the Cask is :latest and does not have an appcast" do
let(:cask_token) { "version-latest" } let(:cask_token) { "version-latest" }
it { should_not warn_with(error_msg) }
it { is_expected.not_to warn_with(error_msg) }
end end
context "when the Cask is versioned and has an appcast" do context "when the Cask is versioned and has an appcast" do
let(:cask_token) { "with-appcast" } let(:cask_token) { "with-appcast" }
it { should_not warn_with(error_msg) }
it { is_expected.not_to warn_with(error_msg) }
end end
context "when the Cask is :latest and has an appcast" do context "when the Cask is :latest and has an appcast" do
let(:cask_token) { "latest-with-appcast" } let(:cask_token) { "latest-with-appcast" }
it { is_expected.to warn_with(error_msg) } it { is_expected.to warn_with(error_msg) }
end end
end end