brew/Library/Homebrew/test/dev-cmd/tap-new_spec.rb
Douglas Eichelberger 9075cbae62 brew style --fix
2023-04-21 09:58:50 -07:00

21 lines
677 B
Ruby

# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
describe "brew tap-new" do
it_behaves_like "parseable arguments"
it "initializes a new tap with a README file and GitHub Actions CI", :integration_test do
# To ensure that Utils::Git.setup_gpg! doesn't raise an error
setup_test_formula "gnupg"
expect { brew "tap-new", "homebrew/foo", "--verbose" }
.to be_a_success
.and output(%r{homebrew/foo}).to_stdout
.and not_to_output.to_stderr
expect(HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-foo/README.md").to exist
expect(HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-foo/.github/workflows/tests.yml").to exist
end
end