summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-10-31 15:04:07 -0700
committerClaire McQuin <claire@getchef.com>2014-10-31 15:04:07 -0700
commit83965110f4803416ffa535080b129f6546c746e4 (patch)
treedb264f09d783c4c953052fc5db1299c4c075a7ae
parentf3a8fb5ccf95338e41d34f84215310912e576695 (diff)
downloadchef-83965110f4803416ffa535080b129f6546c746e4.tar.gz
shell_out didn't pick up entire command
-rw-r--r--spec/support/pedant/run_pedant.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/support/pedant/run_pedant.rb b/spec/support/pedant/run_pedant.rb
index fdefd2a728..f3fa68f44c 100644
--- a/spec/support/pedant/run_pedant.rb
+++ b/spec/support/pedant/run_pedant.rb
@@ -42,11 +42,13 @@ begin
include Chef::Mixin::ShellOut
shell_out("bundle install --gemfile spec/support/pedant/Gemfile")
- so = shell_out("bundle exec chef-pedant" +
+
+ pedant_cmd = "chef-pedant " +
" --config spec/support/pedant/pedant_config.rb" +
" --server #{server.url}" +
" --skip-knife --skip-validation --skip-authentication" +
- " --skip-authorization --skip-omnibus")
+ " --skip-authorization --skip-omnibus"
+ so = shell_out("bundle exec #{pedant_cmd}")
server.stop if server.running?
ensure