From 33fe46f90392c5b08a5ef7ede3f7efe50feaddf4 Mon Sep 17 00:00:00 2001 From: Nanda H Krishna Date: Sat, 13 Jul 2024 15:21:52 -0400 Subject: [PATCH] test/formula_spec: fix failures --- Library/Homebrew/test/formula_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/test/formula_spec.rb b/Library/Homebrew/test/formula_spec.rb index b558edb6cb2724..a8fa841dbbfe57 100644 --- a/Library/Homebrew/test/formula_spec.rb +++ b/Library/Homebrew/test/formula_spec.rb @@ -42,7 +42,7 @@ expect(f.alias_name).to be_nil expect(f.full_alias_name).to be_nil expect(f.specified_path).to eq(path) - [:build, :test, :postinstall].each { |phase| expect(f.network_access_allowed?(phase)).to be(true) } + [:build, :test, :postinstall].each { |phase| expect(f.network_access_allowed?(phase)).to be(false) } expect { klass.new }.to raise_error(ArgumentError) end @@ -56,7 +56,7 @@ expect(f_alias.specified_path).to eq(Pathname(alias_path)) expect(f_alias.full_alias_name).to eq(alias_name) expect(f_alias.full_specified_name).to eq(alias_name) - [:build, :test, :postinstall].each { |phase| expect(f_alias.network_access_allowed?(phase)).to be(true) } + [:build, :test, :postinstall].each { |phase| expect(f_alias.network_access_allowed?(phase)).to be(false) } expect { klass.new }.to raise_error(ArgumentError) end