summaryrefslogtreecommitdiffstats
path: root/spec/shared_behaviours
diff options
context:
space:
mode:
authorPieter van de Bruggen <pieter@puppetlabs.com>2011-04-29 13:36:36 -0700
committerPieter van de Bruggen <pieter@puppetlabs.com>2011-04-29 13:36:36 -0700
commit07efb2463dfc4720df3996bb2f7a80844914f0da (patch)
tree163ad35431200ac28e58183d30362dd77de97be6 /spec/shared_behaviours
parent97ae812f0a67ef01daed4e9220981e2bc7c70603 (diff)
parent207deae2dc06ca439e3b5ee9b044221a1c2899bb (diff)
Merge branch 'tickets/2.7.x/7289' into 2.7.x
Diffstat (limited to 'spec/shared_behaviours')
-rwxr-xr-xspec/shared_behaviours/things_that_declare_options.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/shared_behaviours/things_that_declare_options.rb b/spec/shared_behaviours/things_that_declare_options.rb
index 3d33bab7f..6e7056157 100755
--- a/spec/shared_behaviours/things_that_declare_options.rb
+++ b/spec/shared_behaviours/things_that_declare_options.rb
@@ -39,9 +39,12 @@ shared_examples_for "things that declare options" do
it "should list all the options" do
thing = add_options_to do
option "--foo"
- option "--bar"
+ option "--bar", '-b'
+ option "-q", "--quux"
+ option "-f"
+ option "--baz"
end
- thing.options.should =~ [:foo, :bar]
+ thing.options.should == [:foo, :bar, :b, :q, :quux, :f, :baz]
end
it "should detect conflicts in long options" do