From 3615f891f761c6c822340fb0b22cb79308087a90 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 23 Mar 2019 12:41:35 +0000 Subject: [PATCH] tap-new: improve output. Note the tap path. References #5901. --- Library/Homebrew/dev-cmd/tap-new.rb | 2 ++ Library/Homebrew/test/{cmd => dev-cmd}/tap-new_spec.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) rename Library/Homebrew/test/{cmd => dev-cmd}/tap-new_spec.rb (86%) diff --git a/Library/Homebrew/dev-cmd/tap-new.rb b/Library/Homebrew/dev-cmd/tap-new.rb index f16b1d0354..6bea487729 100644 --- a/Library/Homebrew/dev-cmd/tap-new.rb +++ b/Library/Homebrew/dev-cmd/tap-new.rb @@ -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) diff --git a/Library/Homebrew/test/cmd/tap-new_spec.rb b/Library/Homebrew/test/dev-cmd/tap-new_spec.rb similarity index 86% rename from Library/Homebrew/test/cmd/tap-new_spec.rb rename to Library/Homebrew/test/dev-cmd/tap-new_spec.rb index ea4b8aa733..4da0fb025e 100644 --- a/Library/Homebrew/test/cmd/tap-new_spec.rb +++ b/Library/Homebrew/test/dev-cmd/tap-new_spec.rb @@ -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