Mike McQuaid d1be288418
some needs_network specs: temporarily disable.
These are absurdly flaky right now so let's disable them.
2023-01-20 17:41:07 +00:00

46 lines
1.3 KiB
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
# TODO: consider re-enabling when/if we can make these not flaky.
#
# it "returns data for single valid specified formula" do
# install_test_formula "testball"
# expect { brew "bump", "testball" }
# .to output.to_stdout
# .and not_to_output.to_stderr
# .and be_a_success
# end
# it "returns data for multiple valid specified formula" do
# install_test_formula "testball"
# install_test_formula "testball2"
# expect { brew "bump", "testball", "testball2" }
# .to output.to_stdout
# .and not_to_output.to_stderr
# .and be_a_success
# end
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