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

Luke Kanies luke at puppetlabs.com
Tue May 10 08:05:34 UTC 2011


The following commit has been merged in the experimental branch:
commit 23064bb601622f8a0efaf47c66a9fefec6e62f95
Author: Luke Kanies <luke at puppetlabs.com>
Date:   Wed Mar 2 17:13:44 2011 -0800

    Adding a test for fix to #14
    
    Signed-off-by: Luke Kanies <luke at puppetlabs.com>

diff --git a/lib/puppet/application/interface_base.rb b/lib/puppet/application/interface_base.rb
index 58fc3b8..88f97b6 100644
--- a/lib/puppet/application/interface_base.rb
+++ b/lib/puppet/application/interface_base.rb
@@ -63,7 +63,7 @@ class Puppet::Application::InterfaceBase < Puppet::Application
   def setup
     Puppet::Util::Log.newdestination :console
 
-    @verb = command_line.args.shift 
+    @verb = command_line.args.shift
     @arguments = command_line.args
     @arguments ||= []
 
diff --git a/spec/unit/application/interface_base_spec.rb b/spec/unit/application/interface_base_spec.rb
index 1717f49..ba1e6ab 100644
--- a/spec/unit/application/interface_base_spec.rb
+++ b/spec/unit/application/interface_base_spec.rb
@@ -37,7 +37,7 @@ describe Puppet::Application::InterfaceBase do
 
   describe "during setup" do
     before do
-      @app.command_line.stubs(:args).returns("find", "myname", "myarg")
+      @app.command_line.stubs(:args).returns(["find", "myname", "myarg"])
       @app.stubs(:validate)
     end
 
@@ -47,9 +47,9 @@ describe Puppet::Application::InterfaceBase do
     end
 
     it "should make sure arguments are an array" do
-      @app.command_line.stubs(:args).returns(["find", "myname"])
+      @app.command_line.stubs(:args).returns(["find", "myname", "myarg"])
       @app.setup
-      @app.arguments.should == ["myname"]
+      @app.arguments.should == ["myname", "myarg"]
     end
 
     it "should set the options on the interface" do

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list