summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-04-11 10:46:08 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-04-12 16:12:08 -0700
commitd13a938b0abc604a7802cf41ff75a30ad6ccd192 (patch)
tree7b7f58b33756efdc69926aebbb6b124d88fe2c19 /spec
parent26db6456d22b95486646ae5b8b001acb2051c4da (diff)
downloadpuppet-d13a938b0abc604a7802cf41ff75a30ad6ccd192.tar.gz
puppet-d13a938b0abc604a7802cf41ff75a30ad6ccd192.tar.xz
puppet-d13a938b0abc604a7802cf41ff75a30ad6ccd192.zip
(#6962) Initial support for legacy applications in help.
We now enumerate and print the list of legacy applications in the unadorned help action; this allows us a path to migrating forward smoothly while still providing a good user experience. Paired-With: Matt Robinson <matt@puppetlabs.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/faces/help_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/faces/help_spec.rb b/spec/unit/faces/help_spec.rb
index ad553dc3a..87ff67948 100644
--- a/spec/unit/faces/help_spec.rb
+++ b/spec/unit/faces/help_spec.rb
@@ -61,5 +61,9 @@ describe Puppet::Faces[:help, '0.0.1'] do
it { should have_matching_element %r{ #{name} } }
it { should have_matching_element %r{ #{name} +#{summary}} } if summary
end
+
+ Puppet::Util::CommandLine.available_subcommands do |name|
+ it { should have_matching_element %r{ #{name} } }
+ end
end
end