test/cask/cmd/audit: fix style
This commit is contained in:
parent
b4a36bef64
commit
0f9ca9dbbd
@ -40,7 +40,8 @@ describe Cask::Cmd::Audit, :cask do
|
|||||||
it "passes `audit_download` if the `--download` flag is specified" do
|
it "passes `audit_download` if the `--download` flag is specified" do
|
||||||
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
|
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
|
||||||
expect(Cask::Auditor).to receive(:audit)
|
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)
|
.and_return(result)
|
||||||
|
|
||||||
described_class.run("casktoken", "--download")
|
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
|
it "passes `audit_token_conflicts` if the `--token-conflicts` flag is specified" do
|
||||||
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
|
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
|
||||||
expect(Cask::Auditor).to receive(:audit)
|
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)
|
.and_return(result)
|
||||||
|
|
||||||
described_class.run("casktoken", "--token-conflicts")
|
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
|
it "passes `audit_strict` if the `--strict` flag is specified" do
|
||||||
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
|
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
|
||||||
expect(Cask::Auditor).to receive(:audit)
|
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)
|
.and_return(result)
|
||||||
|
|
||||||
described_class.run("casktoken", "--strict")
|
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
|
it "passes `audit_online` if the `--online` flag is specified" do
|
||||||
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
|
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
|
||||||
expect(Cask::Auditor).to receive(:audit)
|
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)
|
.and_return(result)
|
||||||
|
|
||||||
described_class.run("casktoken", "--online")
|
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
|
it "passes `language` if the `--language` flag is specified" do
|
||||||
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
|
allow(Cask::CaskLoader).to receive(:load).and_return(cask)
|
||||||
expect(Cask::Auditor).to receive(:audit)
|
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)
|
.and_return(result)
|
||||||
|
|
||||||
described_class.run("casktoken", "--language=de-AT")
|
described_class.run("casktoken", "--language=de-AT")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user