summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-11 18:13:51 -0600
committerLuke Kanies <luke@madstop.com>2008-02-11 18:13:51 -0600
commit744cd45378384d33b3118351536e70cd6ea8370d (patch)
treef05dafb7b978f1aba073dd637a83db3419ff6aa2 /spec
parentd21416b534eaa5717eca850cfe848716a9b1dc09 (diff)
downloadpuppet-744cd45378384d33b3118351536e70cd6ea8370d.tar.gz
puppet-744cd45378384d33b3118351536e70cd6ea8370d.tar.xz
puppet-744cd45378384d33b3118351536e70cd6ea8370d.zip
Added a 'tagged?' method to the Tagging module.
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/util/tagging.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/unit/util/tagging.rb b/spec/unit/util/tagging.rb
index 51b69a63c..91cbb213d 100755
--- a/spec/unit/util/tagging.rb
+++ b/spec/unit/util/tagging.rb
@@ -76,4 +76,13 @@ describe Puppet::Util::Tagging, "when adding tags" do
@tagger.tags.should be_include("two")
@tagger.tags.should be_include("three")
end
+
+ it "should indicate when the object is tagged with a provided tag" do
+ @tagger.tag("one")
+ @tagger.should be_tagged("one")
+ end
+
+ it "should indicate when the object is not tagged with a provided tag" do
+ @tagger.should_not be_tagged("one")
+ end
end