From f184228956fc4c2050a5901130fd506b8f069dd6 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Sun, 24 Feb 2008 09:32:44 +1100 Subject: Fixes ticket #1079 - added . support for tags --- spec/unit/util/tagging.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/unit') diff --git a/spec/unit/util/tagging.rb b/spec/unit/util/tagging.rb index 91cbb213d..d61ee8ccb 100755 --- a/spec/unit/util/tagging.rb +++ b/spec/unit/util/tagging.rb @@ -61,6 +61,10 @@ describe Puppet::Util::Tagging, "when adding tags" do lambda { @tagger.tag("good_tag") }.should_not raise_error(Puppet::ParseError) end + it "should allow tags containing '.' characters" do + lambda { @tagger.tag("good.tag") }.should_not raise_error(Puppet::ParseError) + end + it "should provide a method for testing tag validity" do @tagger.metaclass.publicize_methods(:valid_tag?) { @tagger.should be_respond_to(:valid_tag?) } end -- cgit