Fix test for brew cask doctor.

This commit is contained in:
Markus Reiter 2017-02-05 06:48:08 +01:00
parent d8eab8c211
commit d02a4d9e51
2 changed files with 7 additions and 7 deletions

View File

@ -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",

View File

@ -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