diff options
Diffstat (limited to 'spec/integration/defaults.rb')
-rwxr-xr-x | spec/integration/defaults.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/integration/defaults.rb b/spec/integration/defaults.rb new file mode 100755 index 000000000..f6ef74715 --- /dev/null +++ b/spec/integration/defaults.rb @@ -0,0 +1,26 @@ +#!/usr/bin/env ruby + +require File.dirname(__FILE__) + '/../spec_helper' + +require 'puppet/defaults' + +describe "Puppet defaults" do + describe "when configuring the :crl" do + after { Puppet.settings.clear } + + it "should have a :crl setting" do + Puppet.settings.should be_valid(:crl) + end + + it "should warn if :cacrl is set to false" do + Puppet.expects(:warning) + Puppet.settings[:cacrl] = 'false' + end + + it "should set :crl to 'false' if :cacrl is set to false" do + crl = Puppet.settings[:cacrl] + Puppet.settings[:cacrl] = 'false' + Puppet.settings[:crl].should == false + end + end +end |