cask/cmd: fix tests

This commit is contained in:
Rylan Polster 2021-01-23 17:50:41 -05:00
parent 01e894e9c6
commit 7a0471f4c9
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ describe Cask::Cmd::Create, :cask do
it "raises an exception when more than one Cask is given" do
expect {
described_class.run("additional-cask", "another-cask")
}.to raise_error(UsageError, /Only one cask can be created at a time\./)
}.to raise_error(Homebrew::CLI::NumberOfNamedArgumentsError)
end
it "raises an exception when the Cask already exists" do

View File

@ -21,7 +21,7 @@ describe Cask::Cmd::Edit, :cask do
it "raises an error when given more than one argument" do
expect {
described_class.new("local-caffeine", "local-transmission")
}.to raise_error(UsageError, /Only one cask can be edited at a time\./)
}.to raise_error(Homebrew::CLI::NumberOfNamedArgumentsError)
end
it "raises an exception when the Cask doesn't exist" do

View File

@ -6,7 +6,7 @@ shared_examples "a command that requires a Cask token" do
it "raises an exception " do
expect {
described_class.run
}.to raise_error(UsageError, /this command requires a .*cask.* argument/)
}.to raise_error(UsageError, /This command requires .*cask.* argument/)
end
end
end