summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-07-01 15:18:54 -0700
committerMarkus Roberts <Markus@reality.com>2010-07-02 12:31:52 -0700
commit298a76401544422b4e0beeddc95542e21d48690e (patch)
tree29d05ec7e95d01f87505d951ea7c532ea0a61f31
parentb389392c23032090c80cfe42ee19c2d8d45dff64 (diff)
downloadpuppet-298a76401544422b4e0beeddc95542e21d48690e.tar.gz
puppet-298a76401544422b4e0beeddc95542e21d48690e.tar.xz
puppet-298a76401544422b4e0beeddc95542e21d48690e.zip
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.
-rwxr-xr-xspec/unit/application/agent_spec.rb25
1 files changed, 0 insertions, 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
@@ -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)