brew style --fix
This commit is contained in:
parent
459741f683
commit
909f2afd16
@ -116,10 +116,10 @@ RSpec.describe Homebrew::Cmd::InstallCmd do
|
|||||||
keg_dir.mkpath
|
keg_dir.mkpath
|
||||||
touch keg_dir/AbstractTab::FILENAME
|
touch keg_dir/AbstractTab::FILENAME
|
||||||
|
|
||||||
expect {
|
expect do
|
||||||
brew "install", "--ask", "testball1"
|
brew "install", "--ask", "testball1"
|
||||||
}.to output(/.*Formulae\s*\(3\):\s*testball1\s*,?\s*testball5\s*,?\s*testball4.*/).to_stdout
|
end.to output(/.*Formulae\s*\(3\):\s*testball1\s*,?\s*testball5\s*,?\s*testball4.*/).to_stdout
|
||||||
.and not_to_output.to_stderr
|
.and not_to_output.to_stderr
|
||||||
|
|
||||||
expect(HOMEBREW_CELLAR/"testball1/0.1/bin/test").to be_a_file
|
expect(HOMEBREW_CELLAR/"testball1/0.1/bin/test").to be_a_file
|
||||||
expect(HOMEBREW_CELLAR/"testball4/0.1/bin/testball4").to be_a_file
|
expect(HOMEBREW_CELLAR/"testball4/0.1/bin/testball4").to be_a_file
|
||||||
|
@ -29,8 +29,8 @@ RSpec.describe Homebrew::Cmd::Reinstall do
|
|||||||
|
|
||||||
expect { brew "reinstall", "--ask", "testball" }
|
expect { brew "reinstall", "--ask", "testball" }
|
||||||
.to output(/.*Formula\s*\(1\):\s*testball.*/).to_stdout
|
.to output(/.*Formula\s*\(1\):\s*testball.*/).to_stdout
|
||||||
.and not_to_output.to_stderr
|
.and not_to_output.to_stderr
|
||||||
.and be_a_success
|
.and be_a_success
|
||||||
|
|
||||||
expect(foo_dir).to exist
|
expect(foo_dir).to exist
|
||||||
end
|
end
|
||||||
|
@ -52,10 +52,10 @@ RSpec.describe Homebrew::Cmd::UpgradeCmd do
|
|||||||
keg_dir.mkpath
|
keg_dir.mkpath
|
||||||
touch keg_dir/AbstractTab::FILENAME
|
touch keg_dir/AbstractTab::FILENAME
|
||||||
|
|
||||||
expect {
|
expect do
|
||||||
brew "upgrade", "--ask"
|
brew "upgrade", "--ask"
|
||||||
}.to output(/.*Formulae\s*\(3\):\s*testball4\s*,?\s*testball5\s*,?\s*testball.*/)
|
end.to output(/.*Formulae\s*\(3\):\s*testball4\s*,?\s*testball5\s*,?\s*testball.*/)
|
||||||
.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
|
||||||
expect(HOMEBREW_CELLAR/"testball/0.0.1").not_to exist
|
expect(HOMEBREW_CELLAR/"testball/0.0.1").not_to exist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user