summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorDavid Workman <workmad3@gmail.com>2014-09-14 15:43:39 +0100
committerDavid Workman <workmad3@gmail.com>2014-09-14 15:43:39 +0100
commit75fa6a4bfcdb9f413779cf11c9caace4e433df0c (patch)
tree9df61fc577752ef6effde344db8a7c0f754c4f5b /spec/spec_helper.rb
parentf196d2037c9dcffe5a03b12cc3f009503455c638 (diff)
downloadchef-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/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb4
1 files changed, 4 insertions, 0 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'