summaryrefslogtreecommitdiffstats
path: root/spec/shared_behaviours
diff options
context:
space:
mode:
authorDan Bode <dan@puppetlabs.com>2011-07-13 15:38:32 -0700
committerDan Bode <dan@puppetlabs.com>2011-07-13 15:38:32 -0700
commitb82f29c61aa84a12fc208487e4b049cb24702261 (patch)
tree13940fcc93d0409a648511b18478cf073717d58d /spec/shared_behaviours
parent8730b290c4f45f3f76d57d2648bfb642528d0762 (diff)
downloadpuppet-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-xspec/shared_behaviours/things_that_declare_options.rb2
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