diff options
| author | Luke Kanies <luke@madstop.com> | 2008-05-25 17:13:51 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-05-25 17:13:51 -0500 |
| commit | 66c36f0f85f6914372980c66432d1ba122a50321 (patch) | |
| tree | 2e9b7530b97a4cfbde47159e73690fcf14bf5ff1 /spec | |
| parent | 447507c5f8e2c72d6962c29423fbf6fc8d8238a4 (diff) | |
| download | puppet-66c36f0f85f6914372980c66432d1ba122a50321.tar.gz puppet-66c36f0f85f6914372980c66432d1ba122a50321.tar.xz puppet-66c36f0f85f6914372980c66432d1ba122a50321.zip | |
Fixing another failing test -- the new CA tests correctly clear the cache.
I was previously not clearing the cache using the Cacher.invalidate
method, which caused a test to fail.
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/unit/ssl/certificate_authority.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/ssl/certificate_authority.rb b/spec/unit/ssl/certificate_authority.rb index ff629fec1..9cfea0a18 100755 --- a/spec/unit/ssl/certificate_authority.rb +++ b/spec/unit/ssl/certificate_authority.rb @@ -27,7 +27,8 @@ describe Puppet::SSL::CertificateAuthority do after do # Clear out the var, yay unit tests. - Puppet::SSL::CertificateAuthority.instance_variable_set("@instance", nil) + #Puppet::SSL::CertificateAuthority.instance_variable_set("@instance", nil) + Puppet::Util::Cacher.invalidate end it "should return an instance" do |
