summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authorRyan Cragun <me@ryan.ec>2014-05-20 16:05:10 -0700
committerRyan Cragun <me@ryan.ec>2014-05-20 16:05:10 -0700
commit0fe170b0b72f6990ae7ccb55196f16196cd8d3cc (patch)
treeaefd0a6994c92ce44f5011107a088650eb777944 /spec/functional
parent840682f34c1785426794ff7f656d339d3e276110 (diff)
downloadchef-0fe170b0b72f6990ae7ccb55196f16196cd8d3cc.tar.gz
[CHEF-5314] Add unit and fucntional specs
Diffstat (limited to 'spec/functional')
-rw-r--r--spec/functional/shell_spec.rb10
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