diff options
author | James Turnbull <james@lovedthanlost.net> | 2008-06-16 12:54:58 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-06-16 12:54:58 +1000 |
commit | 5273b22b4fda6f9aa7a8366a1dfbae092594d391 (patch) | |
tree | 00bc56a5cf128bdc46ecbf1fa3de5252477892a3 /spec | |
parent | d3a4d9ad72ae12199163864582bfbb0f30a7f271 (diff) | |
parent | 5f600ddc04efd1c4faac9f63b3a07af5282be707 (diff) | |
download | puppet-5273b22b4fda6f9aa7a8366a1dfbae092594d391.tar.gz puppet-5273b22b4fda6f9aa7a8366a1dfbae092594d391.tar.xz puppet-5273b22b4fda6f9aa7a8366a1dfbae092594d391.zip |
Merge branch 'tickets/0.24.x/1168' of git://github.com/lak/puppet into 0.24.x
Conflicts:
CHANGELOG
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/integration/defaults.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/integration/defaults.rb b/spec/integration/defaults.rb index b14a141fb..a07743679 100755 --- a/spec/integration/defaults.rb +++ b/spec/integration/defaults.rb @@ -5,8 +5,9 @@ require File.dirname(__FILE__) + '/../spec_helper' require 'puppet/defaults' describe "Puppet defaults" do + after { Puppet.settings.clear } + describe "when setting the :factpath" do - after { Puppet.settings.clear } it "should add the :factpath to Facter's search paths" do Facter.expects(:search).with("/my/fact/path") @@ -14,4 +15,9 @@ describe "Puppet defaults" do Puppet.settings[:factpath] = "/my/fact/path" end end + describe "when setting the :certname" do + it "should fail if the certname is not downcased" do + lambda { Puppet.settings[:certname] = "Host.Domain.Com" }.should raise_error(ArgumentError) + end + end end |