Merge pull request #19749 from Homebrew/tap-new-no-git

test/dev-cmd/tap-new_spec: use `--no-git` to avoid auth prompt
This commit is contained in:
Mike McQuaid 2025-04-13 14:19:39 +00:00 committed by GitHub
commit 4a842f6f1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ RSpec.describe Homebrew::DevCmd::TapNew do
# To ensure that Utils::Git.setup_gpg! doesn't raise an error # To ensure that Utils::Git.setup_gpg! doesn't raise an error
setup_test_formula "gnupg" setup_test_formula "gnupg"
expect { brew "tap-new", "homebrew/foo", "--verbose" } expect { brew "tap-new", "--no-git", "--verbose", "homebrew/foo" }
.to be_a_success .to be_a_success
.and output(%r{homebrew/foo}).to_stdout .and output(%r{homebrew/foo}).to_stdout
.and not_to_output.to_stderr .and not_to_output.to_stderr