diff options
author | Ryan Cragun <me@ryan.ec> | 2014-05-20 16:05:10 -0700 |
---|---|---|
committer | Ryan Cragun <me@ryan.ec> | 2014-05-20 16:05:10 -0700 |
commit | 0fe170b0b72f6990ae7ccb55196f16196cd8d3cc (patch) | |
tree | aefd0a6994c92ce44f5011107a088650eb777944 /spec/functional/shell_spec.rb | |
parent | 840682f34c1785426794ff7f656d339d3e276110 (diff) | |
download | chef-0fe170b0b72f6990ae7ccb55196f16196cd8d3cc.tar.gz |
[CHEF-5314] Add unit and fucntional specs
Diffstat (limited to 'spec/functional/shell_spec.rb')
-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 |