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