summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJos Backus <jos@catnook.com>2015-10-20 13:04:37 -0700
committerJos Backus <jos@catnook.com>2015-10-20 13:04:37 -0700
commita92590dc897b7d9556add53919dcde7ee4e50b2b (patch)
tree239de0d41f7b89e2018616983dc6de35113e5f5d
parenta6c3b5c1466ebcfcf1ba4a1a2686e59739554f68 (diff)
downloadchef-a92590dc897b7d9556add53919dcde7ee4e50b2b.tar.gz
Add a test for correct tags initialization
-rw-r--r--spec/unit/recipe_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/recipe_spec.rb b/spec/unit/recipe_spec.rb
index ea3ab44c16..77d02dd77a 100644
--- a/spec/unit/recipe_spec.rb
+++ b/spec/unit/recipe_spec.rb
@@ -615,6 +615,10 @@ describe Chef::Recipe do
end
end
+ it "should initialize tags to an empty Array" do
+ expect(node.tags).to eql([])
+ end
+
it "should set tags via tag" do
recipe.tag "foo"
expect(node[:tags]).to include("foo")