summaryrefslogtreecommitdiff
path: root/spec/unit/application_spec.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-07-10 16:00:50 -0700
committerdanielsdeleo <dan@opscode.com>2013-07-11 12:15:05 -0700
commit44f1bf6f0e904aa7196c543ff38f1385428c0525 (patch)
tree147d9ff4344f7e426cbefa492b4865f68e6d54f7 /spec/unit/application_spec.rb
parent7bac32f746a6e341c1cd1aa63fa097ca27325560 (diff)
downloadchef-44f1bf6f0e904aa7196c543ff38f1385428c0525.tar.gz
Avoid conflicts w/ rspec's ARGV in tests
Diffstat (limited to 'spec/unit/application_spec.rb')
-rw-r--r--spec/unit/application_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb
index f3df8c14cd..e0701614a3 100644
--- a/spec/unit/application_spec.rb
+++ b/spec/unit/application_spec.rb
@@ -20,6 +20,8 @@ require 'spec_helper'
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
@@ -29,6 +31,7 @@ describe Chef::Application do
after do
Chef::Config.configuration.replace(@original_conf)
+ ARGV.replace(@original_argv)
end
describe "reconfigure" do