Merge pull request #5912 from MikeMcQuaid/tap-new-output-path

tap-new: improve output.
This commit is contained in:
Mike McQuaid 2019-03-23 13:07:12 +00:00 committed by GitHub
commit f0bcc24fe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -66,6 +66,8 @@ module Homebrew
displayName: Run brew test-bot displayName: Run brew test-bot
YAML YAML
write_path(tap, "azure-pipelines.yml", azure) write_path(tap, "azure-pipelines.yml", azure)
ohai "Created #{tap}"
puts tap.path.to_s
end end
def write_path(tap, filename, content) def write_path(tap, filename, content)

View File

@ -2,7 +2,7 @@ describe "brew tap-new", :integration_test do
it "initializes a new Tap with a ReadMe file" do it "initializes a new Tap with a ReadMe file" do
expect { brew "tap-new", "homebrew/foo", "--verbose" } expect { brew "tap-new", "homebrew/foo", "--verbose" }
.to be_a_success .to be_a_success
.and not_to_output.to_stdout .and output(%r{homebrew/foo}).to_stdout
.and not_to_output.to_stderr .and not_to_output.to_stderr
expect(HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-foo/README.md").to exist expect(HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-foo/README.md").to exist