aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMax Howell2011-08-23 23:30:52 +0100
committerMax Howell2011-08-24 22:30:43 +0100
commit19e387d92e2741fa23cc6fde4743b1b8b28e0fa3 (patch)
tree152d301d9ffe3d9cb8477645d928b6037d9ea6a9 /Library/Homebrew/test
parent3a0cf31ed0ffb33e5ae2c0d996902a983752589d (diff)
downloadbrew-19e387d92e2741fa23cc6fde4743b1b8b28e0fa3.tar.bz2
`brew upgrade`
Consequence: you can no longer install when something is already installed, you must upgrade it. This doesn't apply if the formula in question was unlinked. You can still --force installs though. Rationale: the old way of installing over the top would leave symlinks to multiple versions in /usr/local if the old version had a file the newer version didn't. The new upgrade command handles everything properly.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_external_deps.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_external_deps.rb b/Library/Homebrew/test/test_external_deps.rb
index 30b3540d9..052617712 100644
--- a/Library/Homebrew/test/test_external_deps.rb
+++ b/Library/Homebrew/test/test_external_deps.rb
@@ -77,13 +77,13 @@ end
class ExternalDepsTests < Test::Unit::TestCase
def check_deps_fail f
assert_raises(UnsatisfiedExternalDependencyError) do
- FormulaInstaller.check_external_deps f.new
+ f.new.check_external_deps
end
end
def check_deps_pass f
assert_nothing_raised do
- FormulaInstaller.check_external_deps f.new
+ f.new.check_external_deps
end
end