summaryrefslogtreecommitdiff
path: root/chef/spec/unit/client_spec.rb
diff options
context:
space:
mode:
authorZachary Stevens <zts@cryptocracy.com>2012-09-30 12:38:38 +0700
committerBryan McLellan <btm@opscode.com>2012-10-04 14:40:24 -0700
commit2c42e1d625643b308ba78e31ae967a7a1be13631 (patch)
tree7c58fb0aea4e3ca332be316ff0ba49e7ff2f02b9 /chef/spec/unit/client_spec.rb
parent07d15b1666a157f831bcdedc5c69fc89d33b7e0a (diff)
downloadchef-2c42e1d625643b308ba78e31ae967a7a1be13631.tar.gz
[CHEF-3489] Permit whitespace in chef-client's -o argument.
Diffstat (limited to 'chef/spec/unit/client_spec.rb')
-rw-r--r--chef/spec/unit/client_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/chef/spec/unit/client_spec.rb b/chef/spec/unit/client_spec.rb
index d1f0fe130e..6433808917 100644
--- a/chef/spec/unit/client_spec.rb
+++ b/chef/spec/unit/client_spec.rb
@@ -239,12 +239,16 @@ shared_examples_for Chef::Client do
@node.chef_environment("_default")
@node[:platform] = "example-platform"
@node[:platform_version] = "example-platform-1.0"
+ end
- @client = Chef::Client.new(nil, :override_runlist => 'role[test_role]')
- @client.node = @node
+ it "should permit spaces in overriding run list" do
+ @client = Chef::Client.new(nil, :override_runlist => 'role[a], role[b]')
end
it "should override the run list and save original runlist" do
+ @client = Chef::Client.new(nil, :override_runlist => 'role[test_role]')
+ @client.node = @node
+
@node.run_list << "role[role_containing_cookbook1]"
override_role = Chef::Role.new