summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-01-23 16:56:14 -0600
committerLuke Kanies <luke@madstop.com>2009-02-06 18:08:41 -0600
commit212b3e3dff7cb8846e0d09d39faf226b60c62e6b (patch)
tree83ea695dae7d3a6c74c1a3a1df84b36ff7616e90 /spec
parent5a835315c203e6951562c098a99c4276ed60a17e (diff)
Allowing the Indirection cache to be reset to nil
Otherwise we couldn't disable a cache once configured. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/indirector/indirection.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/indirector/indirection.rb b/spec/unit/indirector/indirection.rb
index 71dc4d24f..51bd45473 100755
--- a/spec/unit/indirector/indirection.rb
+++ b/spec/unit/indirector/indirection.rb
@@ -690,8 +690,9 @@ describe Puppet::Indirector::Indirection do
proc { @indirection.cache_class = "" }.should raise_error(ArgumentError)
end
- it "should fail to set the cache class when the cache class name is nil" do
- proc { @indirection.cache_class = nil }.should raise_error(ArgumentError)
+ it "should allow resetting the cache_class to nil" do
+ @indirection.cache_class = nil
+ @indirection.cache_class.should be_nil
end
it "should fail to set the cache class when the specified cache class cannot be found" do