[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:36:23 UTC 2010


The following commit has been merged in the upstream branch:
commit 298a76401544422b4e0beeddc95542e21d48690e
Author: Jesse Wolfe <jes5199 at gmail.com>
Date:   Thu Jul 1 15:18:54 2010 -0700

    maint: Remove a heisentest that wasn't testing what it claimed
    
    This test in agent_spec.rb was no longer testing any of
    Puppet::Application::Agent, but rather exercising Util::Settings in a
    naive way. Deleted.

diff --git a/spec/unit/application/agent_spec.rb b/spec/unit/application/agent_spec.rb
index edaf04b..074b378 100755
--- a/spec/unit/application/agent_spec.rb
+++ b/spec/unit/application/agent_spec.rb
@@ -8,31 +8,6 @@ require 'puppet/network/server'
 require 'puppet/daemon'
 
 describe Puppet::Application::Agent do
-    it "should ask Puppet::Application to parse Puppet configuration file" do
-        agent = Puppet::Application::Agent.new
-        agent.preinit
-
-        Puppet[:vardir].should == '/dev/null'
-        Puppet[:report].should be_false
-
-        text = <<-CONF
-            [main]
-                vardir='/foo/bar'
-            [puppetd]
-                report=true
-        CONF
-
-        FileTest.expects(:exist?).with('file').returns true
-        Puppet.settings.expects(:read_file).returns(text)
-
-        Puppet.settings.unsafe_parse('file')
-
-        Puppet[:vardir].should == '/foo/bar'
-        Puppet[:report].should be_true
-    end
-end
-
-describe Puppet::Application::Agent do
     before :each do
         @puppetd = Puppet::Application[:agent]
         @puppetd.stubs(:puts)

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list