2016-08-18 22:11:42 +03:00
|
|
|
require "hbc/version"
|
|
|
|
|
|
|
|
describe Hbc::CLI::Doctor do
|
|
|
|
it "displays some nice info about the environment" do
|
|
|
|
expect {
|
|
|
|
Hbc::CLI::Doctor.run
|
2017-02-05 06:48:08 +01:00
|
|
|
}.to output(/\A==> Homebrew-Cask Version/).to_stdout
|
2016-08-18 22:11:42 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
it "raises an exception when arguments are given" do
|
|
|
|
expect {
|
|
|
|
Hbc::CLI::Doctor.run("argument")
|
|
|
|
}.to raise_error(ArgumentError)
|
|
|
|
end
|
|
|
|
end
|