summaryrefslogtreecommitdiff
path: root/spec/unit/application/solo_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/solo_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/solo_spec.rb')
-rw-r--r--spec/unit/application/solo_spec.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/spec/unit/application/solo_spec.rb b/spec/unit/application/solo_spec.rb
index 07598dd01c..b7d66463c8 100644
--- a/spec/unit/application/solo_spec.rb
+++ b/spec/unit/application/solo_spec.rb
@@ -19,25 +19,15 @@ require 'spec_helper'
describe Chef::Application::Solo do
before do
- @original_config = Chef::Config.configuration
-
-
@app = Chef::Application::Solo.new
@app.stub!(:configure_opt_parser).and_return(true)
@app.stub!(:configure_chef).and_return(true)
@app.stub!(:configure_logging).and_return(true)
Chef::Config[:recipe_url] = false
Chef::Config[:json_attribs] = false
- Chef::Config[:splay] = nil
Chef::Config[:solo] = true
end
- after do
- Chef::Config[:solo] = nil
- Chef::Config.configuration.replace(@original_config)
- Chef::Config[:solo] = false
- end
-
describe "configuring the application" do
it "should set solo mode to true" do
@app.reconfigure