resolving discussions
This commit is contained in:
parent
7e876e4681
commit
fb5ddde5ad
@ -103,7 +103,7 @@ RSpec.describe Homebrew::Cmd::InstallCmd do
|
|||||||
|
|
||||||
setup_test_formula "testball1", <<~RUBY
|
setup_test_formula "testball1", <<~RUBY
|
||||||
depends_on "testball5"
|
depends_on "testball5"
|
||||||
#depends_on "testball-build" => :build
|
#depends_on "build" => :build
|
||||||
depends_on "installed"
|
depends_on "installed"
|
||||||
RUBY
|
RUBY
|
||||||
setup_test_formula "installed"
|
setup_test_formula "installed"
|
||||||
@ -112,7 +112,7 @@ RSpec.describe Homebrew::Cmd::InstallCmd do
|
|||||||
RUBY
|
RUBY
|
||||||
setup_test_formula "testball4", ""
|
setup_test_formula "testball4", ""
|
||||||
setup_test_formula "hiop"
|
setup_test_formula "hiop"
|
||||||
setup_test_formula "testball-build", ""
|
setup_test_formula "build", ""
|
||||||
|
|
||||||
# Mock `Formula#any_version_installed?` by creating the tab in a plausible keg directory
|
# Mock `Formula#any_version_installed?` by creating the tab in a plausible keg directory
|
||||||
keg_dir = HOMEBREW_CELLAR/"installed"/"1.0"
|
keg_dir = HOMEBREW_CELLAR/"installed"/"1.0"
|
||||||
|
|||||||
@ -32,8 +32,7 @@ RSpec.describe Homebrew::Cmd::UpgradeCmd do
|
|||||||
it "upgrades dependencies with asking for user prompts", :integration_test do
|
it "upgrades dependencies with asking for user prompts", :integration_test 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
|
#depends_on "build" => :build
|
||||||
#depends_on "testball-build" => :build
|
|
||||||
depends_on "installed"
|
depends_on "installed"
|
||||||
RUBY
|
RUBY
|
||||||
setup_test_formula "installed"
|
setup_test_formula "installed"
|
||||||
@ -42,7 +41,7 @@ RSpec.describe Homebrew::Cmd::UpgradeCmd do
|
|||||||
RUBY
|
RUBY
|
||||||
setup_test_formula "testball4"
|
setup_test_formula "testball4"
|
||||||
setup_test_formula "hiop"
|
setup_test_formula "hiop"
|
||||||
setup_test_formula "testball-build"
|
setup_test_formula "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
|
||||||
@ -88,7 +87,6 @@ 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
|
|
||||||
depends_on "testball-build" => :build
|
depends_on "testball-build" => :build
|
||||||
depends_on "installed"
|
depends_on "installed"
|
||||||
version "0.1"
|
version "0.1"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user