diff options
-rw-r--r-- | spec/spec_helper.rb | 4 | ||||
-rw-r--r-- | spec/unit/application/apply_spec.rb | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7c11957997..c0d1420ef1 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -156,6 +156,10 @@ RSpec.configure do |config| config.before(:each) do Chef::Config.reset end + + config.before(:suite) do + ARGV.clear + end end require 'webrick/utils' diff --git a/spec/unit/application/apply_spec.rb b/spec/unit/application/apply_spec.rb index 913faee3a2..be06612cd9 100644 --- a/spec/unit/application/apply_spec.rb +++ b/spec/unit/application/apply_spec.rb @@ -28,7 +28,6 @@ describe Chef::Application::Apply do describe "configuring the application" do it "should set solo mode to true" do - ARGV.clear @app.reconfigure Chef::Config[:solo].should be_true end |