adding installed up-to-date
This commit is contained in:
parent
483aa26aaa
commit
e6d02658b2
@ -47,9 +47,13 @@ RSpec.describe Homebrew::Cmd::UpgradeCmd do
|
|||||||
(HOMEBREW_CELLAR/"testball5/0.0.1/foo").mkpath
|
(HOMEBREW_CELLAR/"testball5/0.0.1/foo").mkpath
|
||||||
(HOMEBREW_CELLAR/"testball4/0.0.1/foo").mkpath
|
(HOMEBREW_CELLAR/"testball4/0.0.1/foo").mkpath
|
||||||
|
|
||||||
|
keg_dir = HOMEBREW_CELLAR/"installed"/"1.0"
|
||||||
|
keg_dir.mkpath
|
||||||
|
touch keg_dir/AbstractTab::FILENAME
|
||||||
|
|
||||||
expect {
|
expect {
|
||||||
brew "upgrade", "--ask"
|
brew "upgrade", "--ask"
|
||||||
}.to output(/.*Formulae\s*\(3\):\s*testball\s*,?\s*testball5\s*,?\s*testball4.*/)
|
}.to output(/.*Formulae\s*\(3\):\s*testball4\s*,?\s*testball5\s*,?\s*testball5.*/)
|
||||||
.to_stdout.and not_to_output.to_stderr
|
.to_stdout.and not_to_output.to_stderr
|
||||||
|
|
||||||
expect(HOMEBREW_CELLAR/"testball/0.1").to be_a_directory
|
expect(HOMEBREW_CELLAR/"testball/0.1").to be_a_directory
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user