Skip to content

Commit

Permalink
test/{formula,dev-cmd/test}_spec: fix failures
Browse files Browse the repository at this point in the history
  • Loading branch information
nandahkrishna committed Jul 13, 2024
1 parent 7e03abf commit 4cf9b57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/test/dev-cmd/test_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
RUBY

expect { brew "test", "--verbose", "testball_offline_test" }
.to output(/curl: \(6\) Could not resolve host: example\.org/).to_stdout
.to output(/curl: \(7\) Failed to connect to example.org/).to_stdout
.and be_a_failure
end
end
Expand Down
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 4cf9b57

Please sign in to comment.