summaryrefslogtreecommitdiff
path: root/spec/unit/application_spec.rb
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-09-16 21:58:45 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-09-16 21:58:45 -0700
commitc5012d8258dbd555b8691c5af34155b9308b8769 (patch)
treeb5f58b349860036f144e6e5b6757c9b353afd695 /spec/unit/application_spec.rb
parent2d13566644515193d84f32ac0f67f073ebf58587 (diff)
downloadchef-c5012d8258dbd555b8691c5af34155b9308b8769.tar.gz
Don't bother cleaning up Chef::Config after tests or initializing things to default values before
Diffstat (limited to 'spec/unit/application_spec.rb')
-rw-r--r--spec/unit/application_spec.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb
index 73139b667a..ec7f236f1f 100644
--- a/spec/unit/application_spec.rb
+++ b/spec/unit/application_spec.rb
@@ -22,7 +22,6 @@ describe Chef::Application do
before do
@original_argv = ARGV.dup
ARGV.clear
- @original_conf = Chef::Config.configuration
Chef::Log.logger = Logger.new(StringIO.new)
@app = Chef::Application.new
Dir.stub!(:chdir).and_return(0)
@@ -30,7 +29,6 @@ describe Chef::Application do
end
after do
- Chef::Config.configuration.replace(@original_conf)
ARGV.replace(@original_argv)
end
@@ -98,8 +96,6 @@ describe Chef::Application do
describe "when a config_file is present" do
before do
- Chef::Config.configuration.delete('rspec_ran')
-
@config_file = Tempfile.new("rspec-chef-config")
@config_file.puts("rspec_ran('true')")
@config_file.close
@@ -149,8 +145,6 @@ describe Chef::Application do
describe "when the config_file is an URL" do
before do
- Chef::Config.configuration.delete('rspec_ran')
-
@app.config[:config_file] = "http://example.com/foo.rb"
@config_file = Tempfile.new("rspec-chef-config")