18 lines
453 B
Ruby
18 lines
453 B
Ruby
require_relative "shared_examples/invalid_option"
|
|
|
|
describe Cask::Cmd::Doctor, :cask do
|
|
it_behaves_like "a command that handles invalid options"
|
|
|
|
it "displays some nice info about the environment" do
|
|
expect {
|
|
described_class.run
|
|
}.to output(/^==> Homebrew Version/).to_stdout
|
|
end
|
|
|
|
it "raises an exception when arguments are given" do
|
|
expect {
|
|
described_class.run("argument")
|
|
}.to raise_error(ArgumentError)
|
|
end
|
|
end
|