aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-04-25 12:45:37 +0100
committerMike McQuaid2017-04-25 12:45:39 +0100
commit18c2713df4a153ae815de9ca99e51ae8ed6aae28 (patch)
treee1687c4f676c55868fdfa9ac97225fcca5d03a70 /Library/Homebrew/test/cmd
parenta3b6cbe23d9fe27008c7610d3b0146200eee1195 (diff)
downloadbrew-18c2713df4a153ae815de9ca99e51ae8ed6aae28.tar.bz2
formula_installer: improve install/upgrade message
If you `brew install` a formula that's already installed you get: Warning: ripgrep-0.5.1 already installed If you `brew install` an outdated formula that's installed you get: Error: ripgrep-0.5.1 already installed. To install this version, first `brew unlink ripgrep` Instead, suggest that the user should `brew upgrade` in this case. If the formula isn't outdated use the previous message.
Diffstat (limited to 'Library/Homebrew/test/cmd')
-rw-r--r--Library/Homebrew/test/cmd/install_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/cmd/install_spec.rb b/Library/Homebrew/test/cmd/install_spec.rb
index 034bdd53f..b819c17be 100644
--- a/Library/Homebrew/test/cmd/install_spec.rb
+++ b/Library/Homebrew/test/cmd/install_spec.rb
@@ -77,7 +77,7 @@ describe "brew install", :integration_test do
EOS
expect { brew "install", "testball1" }
- .to output(/first `brew unlink testball1`/).to_stderr
+ .to output(/`brew upgrade testball1`/).to_stderr
.and not_to_output.to_stdout
.and be_a_failure