diff options
author | Paul Mooring <paul@opscode.com> | 2013-08-27 17:25:58 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-10-04 09:52:10 -0700 |
commit | 9e954aeb26e83bb77a645c76a184df5a265161d6 (patch) | |
tree | c3835dfe69e93d23eff4052d2fb9ed7a5a29bd81 /spec/unit/node_spec.rb | |
parent | c99665770f2e9f8e118179b807cdd8ffebbd3e63 (diff) | |
download | chef-9e954aeb26e83bb77a645c76a184df5a265161d6.tar.gz |
Moved Chef::Recipe#tag into the Chef::Node object
Diffstat (limited to 'spec/unit/node_spec.rb')
-rw-r--r-- | spec/unit/node_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb index 2906db34bc..bb567dbdf7 100644 --- a/spec/unit/node_spec.rb +++ b/spec/unit/node_spec.rb @@ -204,6 +204,11 @@ describe Chef::Node do node.fuu.bahrr.baz.should == "qux" end + it "should let you use tag as a convience method for the tags attribute" do + node.normal['tags'] = ['one', 'two'] + node.tag('three', 'four') + node['tags'].should == ['one', 'two', 'three', 'four'] + end end describe "default attributes" do |