diff options
| author | Markus Reiter | 2017-02-05 06:48:08 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-02-05 06:48:23 +0100 |
| commit | d02a4d9e51e69280532533b2cfa7e1e5513edc4c (patch) | |
| tree | e6974335ddefa2df82073ba1525ef404cde79ed4 /Library/Homebrew | |
| parent | d8eab8c2114f8f89decb4293283ec747f82f9d08 (diff) | |
| download | brew-d02a4d9e51e69280532533b2cfa7e1e5513edc4c.tar.bz2 | |
Fix test for `brew cask doctor`.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/doctor.rb | 12 | ||||
| -rw-r--r-- | Library/Homebrew/cask/spec/cask/cli/doctor_spec.rb | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb index 598c9eee1..6b2f4caab 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb @@ -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", diff --git a/Library/Homebrew/cask/spec/cask/cli/doctor_spec.rb b/Library/Homebrew/cask/spec/cask/cli/doctor_spec.rb index 38f8b50ac..ff1cf5706 100644 --- a/Library/Homebrew/cask/spec/cask/cli/doctor_spec.rb +++ b/Library/Homebrew/cask/spec/cask/cli/doctor_spec.rb @@ -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 |
