tap-new: improve output.

Note the tap path.

References #5901.
This commit is contained in:
Mike McQuaid 2019-03-23 12:41:35 +00:00
parent 891c67d509
commit 3615f891f7
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
2 changed files with 3 additions and 1 deletions

View File

@ -66,6 +66,8 @@ module Homebrew
displayName: Run brew test-bot
YAML
write_path(tap, "azure-pipelines.yml", azure)
ohai "Created #{tap}"
puts tap.path.to_s
end
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
expect { brew "tap-new", "homebrew/foo", "--verbose" }
.to be_a_success
.and not_to_output.to_stdout
.and output(%r{homebrew/foo}).to_stdout
.and not_to_output.to_stderr
expect(HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-foo/README.md").to exist