summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-04-01 17:07:05 -0500
committerLuke Kanies <luke@madstop.com>2008-04-15 21:34:06 -0500
commitd184b3539db2e857b8df424171a1beed4560a035 (patch)
treea58d1b1621ec849eb6c0592b29b1b0a4f16b77b5
parentb9d647974915da05af8036933e71bc1e6dc00374 (diff)
downloadpuppet-d184b3539db2e857b8df424171a1beed4560a035.tar.gz
puppet-d184b3539db2e857b8df424171a1beed4560a035.tar.xz
puppet-d184b3539db2e857b8df424171a1beed4560a035.zip
Fixing a failing test that had not been updated from previous coding
-rwxr-xr-xspec/unit/ral/type/file.rb2
-rwxr-xr-xspec/unit/ssl/host.rb2
2 files changed, 1 insertions, 3 deletions
diff --git a/spec/unit/ral/type/file.rb b/spec/unit/ral/type/file.rb
index 90346849a..83546bef0 100755
--- a/spec/unit/ral/type/file.rb
+++ b/spec/unit/ral/type/file.rb
@@ -10,8 +10,6 @@ describe Puppet::Type.type(:file) do
@file = Puppet::Type::File.create(:name => @path)
end
- after { Puppet::Type::File.clear }
-
describe "when used with content and replace=>false" do
before do
@file[:content] = "foo"
diff --git a/spec/unit/ssl/host.rb b/spec/unit/ssl/host.rb
index a4972de9d..4a3fbbb83 100755
--- a/spec/unit/ssl/host.rb
+++ b/spec/unit/ssl/host.rb
@@ -236,7 +236,7 @@ describe Puppet::SSL::Host do
end
it "should return true and set its certificate if retrieval was successful" do
- cert = stub 'cert', :content => "mycert"
+ cert = stub 'cert', :content => "mycert", :save => nil
Puppet::SSL::Certificate.stubs(:find).returns cert
@host.retrieve_signed_certificate.should be_true