[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35

Markus Roberts Markus at reality.com
Wed Jul 14 10:35:23 UTC 2010


The following commit has been merged in the upstream branch:
commit a72fb145b9534890a8429ac46c3c324c961eeb41
Author: Markus Roberts <Markus at reality.com>
Date:   Thu Jun 24 18:04:11 2010 -0700

    Fixing oversensitive test
    
    The test checked for false when all we cared about was that it was not truthy.

diff --git a/spec/unit/type/file_spec.rb b/spec/unit/type/file_spec.rb
index 8d0367e..7014854 100755
--- a/spec/unit/type/file_spec.rb
+++ b/spec/unit/type/file_spec.rb
@@ -960,7 +960,7 @@ describe Puppet::Type.type(:file) do
         end
 
         it "should allow setting backup to 'false'" do
-            Puppet::Type::File.new(:name => "/my/file", :backup => false)[:backup].should be_false
+            (!Puppet::Type::File.new(:name => "/my/file", :backup => false)[:backup]).should be_true
         end
 
         it "should set the backup to '.puppet-bak' if it is set to true" do

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list