summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2010-09-22 15:57:51 -0700
committerMarkus Roberts <Markus@reality.com>2010-09-22 21:11:23 -0700
commit9e17c25117f9f3012f64d3d39053750159632782 (patch)
tree1c42ca7c94d47312f558f729f0587a11dc810652 /spec
parentf95006148c3a0b4d7e8ee1812b1993b674f050e4 (diff)
downloadpuppet-9e17c25117f9f3012f64d3d39053750159632782.tar.gz
puppet-9e17c25117f9f3012f64d3d39053750159632782.tar.xz
puppet-9e17c25117f9f3012f64d3d39053750159632782.zip
Fix #4743: Allow the audit meta-parameter to accept both 'all', and :all
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/type_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/type_spec.rb b/spec/unit/type_spec.rb
index 487750e52..48b00ec4a 100755
--- a/spec/unit/type_spec.rb
+++ b/spec/unit/type_spec.rb
@@ -545,6 +545,13 @@ describe Puppet::Type.metaparamclass(:audit) do
@resource[:audit].should == list
end
+ it "should accept the string 'all' to specify auditing all possible properties" do
+ @resource[:audit] = 'all'
+
+ list = @resource.class.properties.collect { |p| p.name }
+ @resource[:audit].should == list
+ end
+
it "should fail if asked to audit an invalid property" do
lambda { @resource[:audit] = :foobar }.should raise_error(Puppet::Error)
end