diff options
author | David Workman <workmad3@gmail.com> | 2014-09-14 15:43:39 +0100 |
---|---|---|
committer | David Workman <workmad3@gmail.com> | 2014-09-14 15:43:39 +0100 |
commit | 75fa6a4bfcdb9f413779cf11c9caace4e433df0c (patch) | |
tree | 9df61fc577752ef6effde344db8a7c0f754c4f5b /spec | |
parent | f196d2037c9dcffe5a03b12cc3f009503455c638 (diff) | |
download | chef-75fa6a4bfcdb9f413779cf11c9caace4e433df0c.tar.gz |
Ensuring no arguments interfere with tests
Pushed the ARGV.clear statement required for the apply_spec
file up into a before(:suite).
Diffstat (limited to 'spec')
-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 |