From ca881b3d683a2047907d353205832ebf21f69ec4 Mon Sep 17 00:00:00 2001 From: commitay Date: Wed, 28 Mar 2018 22:05:56 +1000 Subject: [PATCH] cask audit_spec: rspec auto-corrects --- Library/Homebrew/test/cask/audit_spec.rb | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/Library/Homebrew/test/cask/audit_spec.rb b/Library/Homebrew/test/cask/audit_spec.rb index 6b22422c5c..751a31241f 100644 --- a/Library/Homebrew/test/cask/audit_spec.rb +++ b/Library/Homebrew/test/cask/audit_spec.rb @@ -98,16 +98,19 @@ describe Hbc::Audit, :cask do context "when the Cask has no pkg stanza" do let(:cask_token) { "basic-cask" } - it { should_not warn_with(error_msg) } + + it { is_expected.not_to warn_with(error_msg) } end context "when the Cask does not have allow_untrusted" do let(:cask_token) { "with-uninstall-pkgutil" } - it { should_not warn_with(error_msg) } + + it { is_expected.not_to warn_with(error_msg) } end context "when the Cask has allow_untrusted" do let(:cask_token) { "with-allow-untrusted" } + it { is_expected.to warn_with(error_msg) } end end @@ -406,16 +409,19 @@ describe Hbc::Audit, :cask do context "when the Cask does not use GitHub releases" do let(:cask_token) { "basic-cask" } - it { should_not warn_with(error_msg) } + + it { is_expected.not_to warn_with(error_msg) } end context "when the Cask uses GitHub releases and has an appcast" do let(:cask_token) { "github-with-appcast" } - it { should_not warn_with(error_msg) } + + it { is_expected.not_to warn_with(error_msg) } end context "when the Cask uses GitHub releases and does not have an appcast" do let(:cask_token) { "github-without-appcast" } + it { is_expected.to warn_with(error_msg) } end end @@ -425,16 +431,19 @@ describe Hbc::Audit, :cask do context "when the Cask is :latest and does not have an appcast" do let(:cask_token) { "version-latest" } - it { should_not warn_with(error_msg) } + + it { is_expected.not_to warn_with(error_msg) } end context "when the Cask is versioned and has an appcast" do let(:cask_token) { "with-appcast" } - it { should_not warn_with(error_msg) } + + it { is_expected.not_to warn_with(error_msg) } end context "when the Cask is :latest and has an appcast" do let(:cask_token) { "latest-with-appcast" } + it { is_expected.to warn_with(error_msg) } end end