brew style --fix

This commit is contained in:
thibhero 2025-03-06 23:02:17 -05:00
parent 459741f683
commit 909f2afd16
3 changed files with 8 additions and 8 deletions

View File

@ -116,10 +116,10 @@ RSpec.describe Homebrew::Cmd::InstallCmd do
keg_dir.mkpath
touch keg_dir/AbstractTab::FILENAME
expect {
expect do
brew "install", "--ask", "testball1"
}.to output(/.*Formulae\s*\(3\):\s*testball1\s*,?\s*testball5\s*,?\s*testball4.*/).to_stdout
.and not_to_output.to_stderr
end.to output(/.*Formulae\s*\(3\):\s*testball1\s*,?\s*testball5\s*,?\s*testball4.*/).to_stdout
.and not_to_output.to_stderr
expect(HOMEBREW_CELLAR/"testball1/0.1/bin/test").to be_a_file
expect(HOMEBREW_CELLAR/"testball4/0.1/bin/testball4").to be_a_file

View File

@ -29,8 +29,8 @@ RSpec.describe Homebrew::Cmd::Reinstall do
expect { brew "reinstall", "--ask", "testball" }
.to output(/.*Formula\s*\(1\):\s*testball.*/).to_stdout
.and not_to_output.to_stderr
.and be_a_success
.and not_to_output.to_stderr
.and be_a_success
expect(foo_dir).to exist
end

View File

@ -52,10 +52,10 @@ RSpec.describe Homebrew::Cmd::UpgradeCmd do
keg_dir.mkpath
touch keg_dir/AbstractTab::FILENAME
expect {
expect do
brew "upgrade", "--ask"
}.to output(/.*Formulae\s*\(3\):\s*testball4\s*,?\s*testball5\s*,?\s*testball.*/)
.to_stdout.and not_to_output.to_stderr
end.to output(/.*Formulae\s*\(3\):\s*testball4\s*,?\s*testball5\s*,?\s*testball.*/)
.to_stdout.and not_to_output.to_stderr
expect(HOMEBREW_CELLAR/"testball/0.1").to be_a_directory
expect(HOMEBREW_CELLAR/"testball/0.0.1").not_to exist