diff options
Diffstat (limited to 'spec/functional')
-rw-r--r-- | spec/functional/shell_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/functional/shell_spec.rb b/spec/functional/shell_spec.rb index 64bd28f16c..f2ce3f53e4 100644 --- a/spec/functional/shell_spec.rb +++ b/spec/functional/shell_spec.rb @@ -118,5 +118,15 @@ describe Shell do output.should include("===fatal===") expect(exitstatus).to eq(0) end + + it "sets the override_runlist from the command line" do + output, exitstatus = run_chef_shell_with("-o 'override::foo,override::bar'") do |out, keyboard| + show_recipes_code = %q[puts "#{node.recipes.inspect}"] + keyboard.puts(show_recipes_code) + read_until(out, show_recipes_code) + end + output.should include(%q{["override::foo", "override::bar"]}) + expect(exitstatus).to eq(0) + end end end |