diff options
author | Ivan Larionov <ivan.larionov@skype.net> | 2014-10-18 04:44:49 +0400 |
---|---|---|
committer | Ivan Larionov <ivan.larionov@skype.net> | 2014-10-18 04:44:49 +0400 |
commit | 84447d69f1c963e6579f9716878bff8de3aac396 (patch) | |
tree | b2638aee46e93f233bb2ca411a80b5fad440fbc9 /spec/unit/node_spec.rb | |
parent | 9b3e925188a41bbea954429ac81ffdf65e936eda (diff) | |
download | chef-84447d69f1c963e6579f9716878bff8de3aac396.tar.gz |
Empty run_list should result in empty array when using node.to_hash.
Diffstat (limited to 'spec/unit/node_spec.rb')
-rw-r--r-- | spec/unit/node_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb index 00879dcb13..9c5389393d 100644 --- a/spec/unit/node_spec.rb +++ b/spec/unit/node_spec.rb @@ -682,6 +682,9 @@ describe Chef::Node do describe "to_hash" do it "should serialize itself as a hash" do + # Empty run_list should return an empty array + node.to_hash["run_list"].should == [] + node.chef_environment("dev") node.default_attrs = { "one" => { "two" => "three", "four" => "five", "eight" => "nine" } } node.override_attrs = { "one" => { "two" => "three", "four" => "six" } } |