Skip to content

Commit

Permalink
test/formula_spec: fix failures
Browse files Browse the repository at this point in the history
  • Loading branch information
nandahkrishna committed Jul 13, 2024
1 parent 18f1b70 commit 33fe46f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/test/formula_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 33fe46f

Please sign in to comment.