diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-10-21 11:13:37 -0700 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-10-21 11:13:37 -0700 |
commit | ccb220a72ba07a9b2cbabba25f88edb7e7064d7b (patch) | |
tree | f29e9c4e35f923910978c9acb293d4bda299a30d /spec/unit | |
parent | adfaf6ce192a4520716ce3827d33c7110221bff9 (diff) | |
parent | dd3a00dcb983f895038c86c0dd638638e0f7e56e (diff) | |
download | chef-ccb220a72ba07a9b2cbabba25f88edb7e7064d7b.tar.gz |
Merge pull request #2255 from xeron/node_to_hash_run_list_fix
Make empty run_list to produce an empty array when using node.to_hash
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/node_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb index 00879dcb13..da7a67aec1 100644 --- a/spec/unit/node_spec.rb +++ b/spec/unit/node_spec.rb @@ -700,6 +700,10 @@ describe Chef::Node do h["run_list"].should be_include("recipe[stalinist]") h["chef_environment"].should == "dev" end + + it 'should return an empty array for empty run_list' do + node.to_hash["run_list"].should == [] + end end describe "converting to or from json" do |