diff options
| author | Luke Kanies <luke@madstop.com> | 2009-01-31 10:04:47 -0700 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2009-02-06 18:08:43 -0600 |
| commit | 37d1a7cf2c637e2bde16623007014125066fcec5 (patch) | |
| tree | 23bf820321e143634e8a340b60cbd6a4288487fb /spec/unit | |
| parent | bf3c72e8a1ed59daf5027c508f2d6dd95424f5bc (diff) | |
| download | puppet-37d1a7cf2c637e2bde16623007014125066fcec5.tar.gz puppet-37d1a7cf2c637e2bde16623007014125066fcec5.tar.xz puppet-37d1a7cf2c637e2bde16623007014125066fcec5.zip | |
Removing restart-handling from Configurer
This will be handled by the Agent or the Daemon class.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/configurer.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/unit/configurer.rb b/spec/unit/configurer.rb index 996d67282..92478eea8 100755 --- a/spec/unit/configurer.rb +++ b/spec/unit/configurer.rb @@ -58,28 +58,6 @@ describe Puppet::Configurer, "when executing a catalog run" do catalog.expects(:apply).never # because we're not yielding @agent.run end - - it "should HUP itself if it should be restarted" do - catalog = stub 'catalog', :retrieval_duration= => nil, :apply => nil - @agent.expects(:retrieve_catalog).returns catalog - - Process.expects(:kill).with(:HUP, $$) - - @agent.expects(:restart?).returns true - - @agent.run - end - - it "should not HUP itself if it should not be restarted" do - catalog = stub 'catalog', :retrieval_duration= => nil, :apply => nil - @agent.expects(:retrieve_catalog).returns catalog - - Process.expects(:kill).never - - @agent.expects(:restart?).returns false - - @agent.run - end end describe Puppet::Configurer, "when retrieving a catalog" do |
