check for formula in any order

This commit is contained in:
thibhero 2025-03-06 23:30:22 -05:00
parent 909f2afd16
commit 9874f2bbb9

View File

@ -54,7 +54,8 @@ RSpec.describe Homebrew::Cmd::UpgradeCmd do
expect do
brew "upgrade", "--ask"
end.to output(/.*Formulae\s*\(3\):\s*testball4\s*,?\s*testball5\s*,?\s*testball.*/)
end.to output(/.*Formulae\s*\(3\):\s*(?:testball|testball5|testball4)\s*,?\s*(?:testball|testball5|testball4)\s*,?
\s*(?:testball|testball5|testball4).*/)
.to_stdout.and not_to_output.to_stderr
expect(HOMEBREW_CELLAR/"testball/0.1").to be_a_directory