brew/Library/Homebrew/test/dev-cmd/tap-new_spec.rb
Issy Long b3abf3d7c9
dev-cmd/tap-new: Set up GitHub Actions CI instead of Azure
- We recently removed Azure as a supported CI provider
  (Homebrew/homebrew-test-bot PR 325), so `brew test-bot` won't run on
  Azure any more.
- Homebrew CI is moving towards GitHub Actions as the standard.
2020-02-15 17:39:33 +00:00

20 lines
618 B
Ruby

# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
describe "Homebrew.tap_new_args" do
it_behaves_like "parseable arguments"
end
describe "brew tap-new", :integration_test do
it "initializes a new Tap with a ReadMe file and GitHub Actions CI" do
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/main.yml").to exist
end
end