mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

- Extract update tests into separate tests. - Make `brew tests --online` run only once in its own job. This job could be made non-required to fight flakiness. - Split up the various macOS runs into several steps now that we have more parallel macOS workers available. - Cleanup some flaky tests.
25 lines
689 B
Ruby
25 lines
689 B
Ruby
# typed: false
|
|
# frozen_string_literal: true
|
|
|
|
require "cmd/shared_examples/args_parse"
|
|
|
|
describe "brew bump" do
|
|
it_behaves_like "parseable arguments"
|
|
|
|
describe "formula", :integration_test, :needs_homebrew_curl, :needs_network do
|
|
it "returns no data and prints a message for HEAD-only formulae" do
|
|
content = <<~RUBY
|
|
desc "HEAD-only test formula"
|
|
homepage "https://brew.sh"
|
|
head "https://github.com/Homebrew/brew.git"
|
|
RUBY
|
|
setup_test_formula("headonly", content)
|
|
|
|
expect { brew "bump", "headonly" }
|
|
.to output(/Formula is HEAD-only./).to_stdout
|
|
.and not_to_output.to_stderr
|
|
.and be_a_success
|
|
end
|
|
end
|
|
end
|