From 298a76401544422b4e0beeddc95542e21d48690e Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Thu, 1 Jul 2010 15:18:54 -0700 Subject: 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. --- spec/unit/application/agent_spec.rb | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/spec/unit/application/agent_spec.rb b/spec/unit/application/agent_spec.rb index edaf04bb2..074b3781c 100755 --- a/spec/unit/application/agent_spec.rb +++ b/spec/unit/application/agent_spec.rb @@ -7,31 +7,6 @@ require 'puppet/application/agent' 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] -- cgit