[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Daniel Pittman daniel at puppetlabs.com
Tue May 10 08:16:39 UTC 2011


The following commit has been merged in the experimental branch:
commit e6caa2459a75cdfb015e7f4754dd5b44d166b0b5
Author: Daniel Pittman <daniel at puppetlabs.com>
Date:   Mon Apr 18 13:27:10 2011 -0700

    maint: make sure we don't ever default to being default...
    
    We tested that we could make something a default action, but we also want to
    assert that we never accidentally make everything the default action.
    
    Paired-With: Max Martin <max at puppetlabs.com>

diff --git a/spec/unit/interface/action_builder_spec.rb b/spec/unit/interface/action_builder_spec.rb
index 50784cc..8f8e8d1 100755
--- a/spec/unit/interface/action_builder_spec.rb
+++ b/spec/unit/interface/action_builder_spec.rb
@@ -70,7 +70,12 @@ describe Puppet::Interface::ActionBuilder do
         action = Puppet::Interface::ActionBuilder.build(face, :foo) do
           default
         end
-        action.default.should == true
+        action.default.should be_true
+      end
+
+      it "should not be default by, er, default. *cough*" do
+        action = Puppet::Interface::ActionBuilder.build(face, :foo) do end
+        action.default.should be_false
       end
     end
   end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list