From 7d2c05e86eb14bc7600dcf1d61ba447cd9b4cab8 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 16 Apr 2008 14:21:31 -0500 Subject: The 'destroy' method for the ssl_file terminus base class now returns false on missing files, rather than failing. --- spec/unit/indirector/ssl_file.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/unit/indirector/ssl_file.rb b/spec/unit/indirector/ssl_file.rb index 31f82856e..2671f964f 100755 --- a/spec/unit/indirector/ssl_file.rb +++ b/spec/unit/indirector/ssl_file.rb @@ -111,8 +111,8 @@ describe Puppet::Indirector::SslFile do FileTest.expects(:exist?).with(@certpath).returns false end - it "should fail" do - lambda { @searcher.destroy(@request) }.should raise_error(Puppet::Error) + it "should return nil" do + @searcher.destroy(@request).should be_false end end -- cgit