diff options
author | Thom May <thom@may.lt> | 2015-11-12 10:07:30 +0000 |
---|---|---|
committer | Thom May <thom@may.lt> | 2015-11-12 10:07:30 +0000 |
commit | f4a47f9e248d99fe6c284bcbff7c2b05d6dd0484 (patch) | |
tree | 0775ce6882d47f093201a57f49ee65fde6941e25 /spec/unit/node_spec.rb | |
parent | b0dbe243d469cc36477ba8102b74a8456b6f276d (diff) | |
parent | af7379d0beeceacf0c7806ac1811a472dbc15a3b (diff) | |
download | chef-f4a47f9e248d99fe6c284bcbff7c2b05d6dd0484.tar.gz |
Merge pull request #4064 from josb/master
Use the initializer to avoid NoMethodError on nil.include?
Diffstat (limited to 'spec/unit/node_spec.rb')
-rw-r--r-- | spec/unit/node_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb index 17e085a465..4b57a93009 100644 --- a/spec/unit/node_spec.rb +++ b/spec/unit/node_spec.rb @@ -793,7 +793,7 @@ describe Chef::Node do end it "should not set the tags attribute to an empty array if it is already defined" do - node.normal[:tags] = [ "radiohead" ] + node.tag("radiohead") node.consume_external_attrs(@ohai_data, {}) expect(node.tags).to eql([ "radiohead" ]) end |