diff options
| author | Jeff McCune <jeff@puppetlabs.com> | 2011-07-10 13:04:20 -0700 |
|---|---|---|
| committer | Jeff McCune <jeff@puppetlabs.com> | 2011-07-10 13:04:20 -0700 |
| commit | b7ee0258ab40478329c20177eda9b250f27ede18 (patch) | |
| tree | b3ecb26b570730e825c0a4005913ff7370511477 /spec/unit/interface | |
| parent | 8fe2e555ac3d57f5b6503ffe1a5466db8d6e190a (diff) | |
| parent | ae3ef423c03b7ef27f975dadfb67bf77ca481503 (diff) | |
Merge branch 'ticket/2.7.x/7699_fix_help_listing_options_twice' into 2.7.x
* ticket/2.7.x/7699_fix_help_listing_options_twice:
(#7699) - Help should only show options once
Diffstat (limited to 'spec/unit/interface')
| -rwxr-xr-x | spec/unit/interface/action_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/unit/interface/action_spec.rb b/spec/unit/interface/action_spec.rb index cf8d61d51..3e1bd0d4c 100755 --- a/spec/unit/interface/action_spec.rb +++ b/spec/unit/interface/action_spec.rb @@ -171,6 +171,15 @@ describe Puppet::Interface::Action do face.get_action(:foo).options.should =~ [:bar] end + it "should only list options and not aliases" do + face = Puppet::Interface.new(:action_level_options, '0.0.1') do + action :foo do + option "--bar", "-b", "--foo-bar" + end + end + face.get_action(:foo).options.should =~ [:bar] + end + describe "with both face and action options" do let :face do Puppet::Interface.new(:action_level_options, '0.0.1') do |
