aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cask/cli
diff options
context:
space:
mode:
authorMarkus Reiter2017-09-17 04:03:56 +0200
committerGitHub2017-09-17 04:03:56 +0200
commitdbc4a385b9d421b1738c86b4d0ca7cc1b49b3782 (patch)
tree2f4ddf25d1b098075efd023045c92e1faadc4d78 /Library/Homebrew/test/cask/cli
parente537db28cb6b961deab28dc7487887dfe1e659cf (diff)
parentacf1b278ae0c27f19e7d20a9d23c005201dc818c (diff)
downloadbrew-dbc4a385b9d421b1738c86b4d0ca7cc1b49b3782.tar.bz2
Merge pull request #2878 from wendorf/brew_cask_list_full-name
List cask full-names
Diffstat (limited to 'Library/Homebrew/test/cask/cli')
-rw-r--r--Library/Homebrew/test/cask/cli/list_spec.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cask/cli/list_spec.rb b/Library/Homebrew/test/cask/cli/list_spec.rb
index fd6997f41..d2d7efd3b 100644
--- a/Library/Homebrew/test/cask/cli/list_spec.rb
+++ b/Library/Homebrew/test/cask/cli/list_spec.rb
@@ -14,6 +14,26 @@ describe Hbc::CLI::List, :cask do
EOS
end
+ it "lists full names" do
+ casks = %w[
+ local-caffeine
+ third-party/tap/third-party-cask
+ local-transmission
+ ].map { |c| Hbc::CaskLoader.load(c) }
+
+ casks.each do |c|
+ InstallHelper.install_with_caskfile(c)
+ end
+
+ expect {
+ Hbc::CLI::List.run("--full-name")
+ }.to output(<<-EOS.undent).to_stdout
+ local-caffeine
+ local-transmission
+ third-party/tap/third-party-cask
+ EOS
+ end
+
describe "lists versions" do
let(:casks) { ["local-caffeine", "local-transmission"] }
let(:expected_output) {