summaryrefslogtreecommitdiffstats
path: root/spec/unit/interface_spec.rb
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2011-07-10 13:04:20 -0700
committerJeff McCune <jeff@puppetlabs.com>2011-07-10 13:04:20 -0700
commitb7ee0258ab40478329c20177eda9b250f27ede18 (patch)
treeb3ecb26b570730e825c0a4005913ff7370511477 /spec/unit/interface_spec.rb
parent8fe2e555ac3d57f5b6503ffe1a5466db8d6e190a (diff)
parentae3ef423c03b7ef27f975dadfb67bf77ca481503 (diff)
downloadpuppet-b7ee0258ab40478329c20177eda9b250f27ede18.tar.gz
puppet-b7ee0258ab40478329c20177eda9b250f27ede18.tar.xz
puppet-b7ee0258ab40478329c20177eda9b250f27ede18.zip
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_spec.rb')
-rwxr-xr-xspec/unit/interface_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/interface_spec.rb b/spec/unit/interface_spec.rb
index 8bbbcc857..4cb1f8743 100755
--- a/spec/unit/interface_spec.rb
+++ b/spec/unit/interface_spec.rb
@@ -174,6 +174,14 @@ describe Puppet::Interface do
face.get_action(:foo).options.should =~ [:quux]
face.get_action(:bar).options.should =~ [:quux]
end
+
+ it "should only list options and not aliases" do
+ face = subject.new(:face_options, '0.0.1') do
+ option "--bar", "-b", "--foo-bar"
+ end
+ face.options.should =~ [:bar]
+ end
+
end
describe "with inherited options" do