diff options
author | Dan Bode <dan@puppetlabs.com> | 2011-07-13 15:38:32 -0700 |
---|---|---|
committer | Dan Bode <dan@puppetlabs.com> | 2011-07-13 15:38:32 -0700 |
commit | b82f29c61aa84a12fc208487e4b049cb24702261 (patch) | |
tree | 13940fcc93d0409a648511b18478cf073717d58d /spec/shared_behaviours | |
parent | 8730b290c4f45f3f76d57d2648bfb642528d0762 (diff) | |
download | puppet-b82f29c61aa84a12fc208487e4b049cb24702261.tar.gz puppet-b82f29c61aa84a12fc208487e4b049cb24702261.tar.xz puppet-b82f29c61aa84a12fc208487e4b049cb24702261.zip |
(#7699) Help command should only list options once
The problem was caused by the fact that the
options method returns a list of options that
treated the aliases as seperate options.
The fix is to only maintain a list of options
and not add all aliases to the options list.
Diffstat (limited to 'spec/shared_behaviours')
-rwxr-xr-x | spec/shared_behaviours/things_that_declare_options.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/shared_behaviours/things_that_declare_options.rb b/spec/shared_behaviours/things_that_declare_options.rb index ebf1b2071..19bba66c1 100755 --- a/spec/shared_behaviours/things_that_declare_options.rb +++ b/spec/shared_behaviours/things_that_declare_options.rb @@ -43,7 +43,7 @@ shared_examples_for "things that declare options" do option "-f" option "--baz" end - thing.options.should == [:foo, :bar, :b, :q, :quux, :f, :baz] + thing.options.should == [:foo, :bar, :quux, :f, :baz] end it "should detect conflicts in long options" do |