summaryrefslogtreecommitdiff
path: root/spec/unit/application/apply_spec.rb
diff options
context:
space:
mode:
authorDavid Workman <workmad3@gmail.com>2014-09-04 21:05:20 +0100
committerDavid Workman <workmad3@gmail.com>2014-09-04 21:05:20 +0100
commitd3e373eb2412b9b0727f015c5f8ed0453fa891a8 (patch)
tree2510ead883dab49b2250c33d6cf2c84aef53c6da /spec/unit/application/apply_spec.rb
parent10621b23c26cd813cc8559d61105bf8be20e0c37 (diff)
downloadchef-d3e373eb2412b9b0727f015c5f8ed0453fa891a8.tar.gz
Fixing travis-ci failure.
Travis-CI runs failed due to Chef::Application::Apply picking up the explicit --format parameter and attempting to use it. Using ARGV.clear before a call to @app.reconfigure fixes this failure for now. Also a whitespace modification in apply.rb
Diffstat (limited to 'spec/unit/application/apply_spec.rb')
-rw-r--r--spec/unit/application/apply_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/application/apply_spec.rb b/spec/unit/application/apply_spec.rb
index 3f7fb851c2..9844640b47 100644
--- a/spec/unit/application/apply_spec.rb
+++ b/spec/unit/application/apply_spec.rb
@@ -28,6 +28,7 @@ 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