test/cask/cmd/audit: fix style

This commit is contained in:
Rylan Polster 2021-03-22 22:26:22 -04:00
parent b4a36bef64
commit 0f9ca9dbbd
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -40,7 +40,8 @@ describe Cask::Cmd::Audit, :cask do
it "passes `audit_download` if the `--download` flag is specified" do
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
expect(Cask::Auditor).to receive(:audit)
.with(cask, audit_download: true, audit_new_cask: false, quarantine: true, any_named_args: true, display_passes: true)
.with(cask, audit_download: true, audit_new_cask: false, quarantine: true, any_named_args: true,
display_passes: true)
.and_return(result)
described_class.run("casktoken", "--download")
@ -49,7 +50,8 @@ describe Cask::Cmd::Audit, :cask do
it "passes `audit_token_conflicts` if the `--token-conflicts` flag is specified" do
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
expect(Cask::Auditor).to receive(:audit)
.with(cask, audit_token_conflicts: true, audit_new_cask: false, quarantine: true, any_named_args: true, display_passes: true)
.with(cask, audit_token_conflicts: true, audit_new_cask: false, quarantine: true, any_named_args: true,
display_passes: true)
.and_return(result)
described_class.run("casktoken", "--token-conflicts")
@ -58,7 +60,8 @@ describe Cask::Cmd::Audit, :cask do
it "passes `audit_strict` if the `--strict` flag is specified" do
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
expect(Cask::Auditor).to receive(:audit)
.with(cask, audit_strict: true, audit_new_cask: false, quarantine: true, any_named_args: true, display_passes: true)
.with(cask, audit_strict: true, audit_new_cask: false, quarantine: true, any_named_args: true,
display_passes: true)
.and_return(result)
described_class.run("casktoken", "--strict")
@ -67,7 +70,8 @@ describe Cask::Cmd::Audit, :cask do
it "passes `audit_online` if the `--online` flag is specified" do
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
expect(Cask::Auditor).to receive(:audit)
.with(cask, audit_online: true, audit_new_cask: false, quarantine: true, any_named_args: true, display_passes: true)
.with(cask, audit_online: true, audit_new_cask: false, quarantine: true, any_named_args: true,
display_passes: true)
.and_return(result)
described_class.run("casktoken", "--online")
@ -85,7 +89,8 @@ describe Cask::Cmd::Audit, :cask do
it "passes `language` if the `--language` flag is specified" do
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
expect(Cask::Auditor).to receive(:audit)
.with(cask, audit_new_cask: false, quarantine: true, language: ["de-AT"], any_named_args: true, display_passes: true)
.with(cask, audit_new_cask: false, quarantine: true, language: ["de-AT"], any_named_args: true,
display_passes: true)
.and_return(result)
described_class.run("casktoken", "--language=de-AT")