summaryrefslogtreecommitdiffstats
path: root/spec/unit/interface
diff options
context:
space:
mode:
authorDan Bode <dan@puppetlabs.com>2011-07-15 14:51:25 -0700
committerDan Bode <dan@puppetlabs.com>2011-07-15 14:51:25 -0700
commit756314da4e48b8a138a1e38f1ae276d6721ef410 (patch)
treeaa0675aedd35be1940f010e0ba33c5072a45ba2c /spec/unit/interface
parent833edd0abaa13cd71da0d200b593f3f63bc4b7b9 (diff)
parentb82f29c61aa84a12fc208487e4b049cb24702261 (diff)
downloadpuppet-756314da4e48b8a138a1e38f1ae276d6721ef410.tar.gz
puppet-756314da4e48b8a138a1e38f1ae276d6721ef410.tar.xz
puppet-756314da4e48b8a138a1e38f1ae276d6721ef410.zip
Merge branch 'issue/2.7.x/7699' into 2.7.x
Diffstat (limited to 'spec/unit/interface')
-rwxr-xr-xspec/unit/interface/action_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/interface/action_spec.rb b/spec/unit/interface/action_spec.rb
index cf8d61d51..23216e7b4 100755
--- a/spec/unit/interface/action_spec.rb
+++ b/spec/unit/interface/action_spec.rb
@@ -171,6 +171,16 @@ 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
+ when_invoked do |options| true end
+ 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