diff options
| author | Luke Kanies <luke@madstop.com> | 2008-04-16 14:21:31 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-04-16 14:21:31 -0500 |
| commit | 7d2c05e86eb14bc7600dcf1d61ba447cd9b4cab8 (patch) | |
| tree | af309350a1132acdc2be810bc2a5ea3ac4628a77 /spec | |
| parent | 7555af6de90a42bc7ff12381b3c198335c651299 (diff) | |
| download | puppet-7d2c05e86eb14bc7600dcf1d61ba447cd9b4cab8.tar.gz puppet-7d2c05e86eb14bc7600dcf1d61ba447cd9b4cab8.tar.xz puppet-7d2c05e86eb14bc7600dcf1d61ba447cd9b4cab8.zip | |
The 'destroy' method for the ssl_file terminus base class
now returns false on missing files, rather than failing.
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/unit/indirector/ssl_file.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
