Fix test for brew cask doctor
.
This commit is contained in:
parent
d8eab8c211
commit
d02a4d9e51
@ -2,14 +2,14 @@ module Hbc
|
|||||||
class CLI
|
class CLI
|
||||||
class Doctor < Base
|
class Doctor < Base
|
||||||
def self.run
|
def self.run
|
||||||
ohai "Homebrew-Cask Version:", Hbc.full_version
|
ohai "Homebrew-Cask Version", Hbc.full_version
|
||||||
ohai "Homebrew-Cask Install Location:", render_install_location
|
ohai "Homebrew-Cask Install Location", render_install_location
|
||||||
ohai "Homebrew-Cask Staging Location:", render_staging_location(Hbc.caskroom)
|
ohai "Homebrew-Cask Staging Location", render_staging_location(Hbc.caskroom)
|
||||||
ohai "Homebrew-Cask Cached Downloads:", render_cached_downloads
|
ohai "Homebrew-Cask Cached Downloads", render_cached_downloads
|
||||||
ohai "Homebrew-Cask Taps:"
|
ohai "Homebrew-Cask Taps:"
|
||||||
puts render_taps(Hbc.default_tap, *alt_taps)
|
puts render_taps(Hbc.default_tap, *alt_taps)
|
||||||
ohai "Contents of $LOAD_PATH:", render_load_path($LOAD_PATH)
|
ohai "Contents of $LOAD_PATH", render_load_path($LOAD_PATH)
|
||||||
ohai "Environment Variables:"
|
ohai "Environment Variables"
|
||||||
|
|
||||||
environment_variables = [
|
environment_variables = [
|
||||||
"RUBYLIB",
|
"RUBYLIB",
|
||||||
|
@ -4,7 +4,7 @@ describe Hbc::CLI::Doctor do
|
|||||||
it "displays some nice info about the environment" do
|
it "displays some nice info about the environment" do
|
||||||
expect {
|
expect {
|
||||||
Hbc::CLI::Doctor.run
|
Hbc::CLI::Doctor.run
|
||||||
}.to output(/\A==> macOS Release:/).to_stdout
|
}.to output(/\A==> Homebrew-Cask Version/).to_stdout
|
||||||
end
|
end
|
||||||
|
|
||||||
it "raises an exception when arguments are given" do
|
it "raises an exception when arguments are given" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user