updating test for upgrade

This commit is contained in:
thibhero 2025-06-08 11:31:51 -04:00
parent 27f7f282be
commit 628d265d7a

View File

@ -33,7 +33,7 @@ RSpec.describe Homebrew::Cmd::UpgradeCmd do
setup_test_formula "testball", <<~RUBY setup_test_formula "testball", <<~RUBY
depends_on "testball5" depends_on "testball5"
# should work as its not building but test doesnt pass if dependant # should work as its not building but test doesnt pass if dependant
depends_on "testball-build" => :build #depends_on "testball-build" => :build
depends_on "installed" depends_on "installed"
RUBY RUBY
setup_test_formula "installed" setup_test_formula "installed"
@ -89,7 +89,7 @@ RSpec.describe Homebrew::Cmd::UpgradeCmd do
content = <<~RUBY content = <<~RUBY
depends_on "testball5" depends_on "testball5"
# should work as its not building but test doesnt pass if dependant # should work as its not building but test doesnt pass if dependant
# depends_on "build" => :build depends_on "testball-build" => :build
depends_on "installed" depends_on "installed"
version "0.1" version "0.1"
RUBY RUBY
@ -106,7 +106,7 @@ RSpec.describe Homebrew::Cmd::UpgradeCmd do
RUBY RUBY
setup_test_formula "testball4", content, testball_bottle: true setup_test_formula "testball4", content, testball_bottle: true
setup_test_formula "hiop" setup_test_formula "hiop"
setup_test_formula "build" setup_test_formula "testball-build"
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath (HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
(HOMEBREW_CELLAR/"testball5/0.0.1/foo").mkpath (HOMEBREW_CELLAR/"testball5/0.0.1/foo").mkpath