diff options
author | John Keiser <jkeiser@opscode.com> | 2013-09-16 21:58:45 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-09-16 21:58:45 -0700 |
commit | c5012d8258dbd555b8691c5af34155b9308b8769 (patch) | |
tree | b5f58b349860036f144e6e5b6757c9b353afd695 /spec/unit/daemon_spec.rb | |
parent | 2d13566644515193d84f32ac0f67f073ebf58587 (diff) | |
download | chef-c5012d8258dbd555b8691c5af34155b9308b8769.tar.gz |
Don't bother cleaning up Chef::Config after tests or initializing things to default values before
Diffstat (limited to 'spec/unit/daemon_spec.rb')
-rw-r--r-- | spec/unit/daemon_spec.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/unit/daemon_spec.rb b/spec/unit/daemon_spec.rb index 5c0d828354..5cc32d0e40 100644 --- a/spec/unit/daemon_spec.rb +++ b/spec/unit/daemon_spec.rb @@ -20,7 +20,6 @@ require 'ostruct' describe Chef::Daemon do before do - @original_config = Chef::Config.configuration if windows? mock_struct = #Struct::Passwd.new(nil, nil, 111, 111) mock_struct = OpenStruct.new(:uid => 2342, :gid => 2342) @@ -33,10 +32,6 @@ describe Chef::Daemon do end end - after do - Chef::Config.configuration.replace(@original_config) - end - describe ".running?" do before do @@ -77,10 +72,6 @@ describe Chef::Daemon do Chef::Config[:pid_file] = "/var/run/chef/chef-client.pid" end - after do - Chef::Config.configuration.replace(@original_config) - end - it "should return the supplied value" do Chef::Daemon.pid_file.should eql("/var/run/chef/chef-client.pid") end @@ -89,7 +80,6 @@ describe Chef::Daemon do describe "without the pid_file option set" do before do - Chef::Config[:pid_file] = nil Chef::Daemon.name = "chef-client" end @@ -230,10 +220,6 @@ describe Chef::Daemon do end describe "when just the user option is supplied" do - before do - Chef::Config[:group] = nil - end - it "should log an appropriate info message" do Chef::Log.should_receive(:info).with("About to change privilege to aj") Chef::Daemon.change_privilege |