From 65f601a99a0ca7ebacfda7a6becd8af9fe9eaacb Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Wed, 11 Nov 2009 23:22:03 -0800 Subject: Fixing 2806 Specifying multiple tags fails to apply any of them Fix code that was passing an Array of code to a method that was expecting a single tag. Includes Markus's suggestions Signed-off-by: Jesse Wolfe --- spec/unit/util/tagging.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec/unit/util') diff --git a/spec/unit/util/tagging.rb b/spec/unit/util/tagging.rb index d61ee8ccb..3486f46f2 100755 --- a/spec/unit/util/tagging.rb +++ b/spec/unit/util/tagging.rb @@ -89,4 +89,14 @@ describe Puppet::Util::Tagging, "when adding tags" do it "should indicate when the object is not tagged with a provided tag" do @tagger.should_not be_tagged("one") end + + it "should indicate when the object is tagged with any tag in an array" do + @tagger.tag("one") + @tagger.should be_tagged("one","two","three") + end + + it "should indicate when the object is not tagged with any tag in an array" do + @tagger.tag("one") + @tagger.should_not be_tagged("two","three") + end end -- cgit