aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/models/public_body_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb
index 8bd419005..d99fec40d 100644
--- a/spec/models/public_body_spec.rb
+++ b/spec/models/public_body_spec.rb
@@ -76,6 +76,14 @@ describe PublicBody, " using machine tags" do
@public_body.get_tag_value('wondrous').should == nil
@public_body.get_tag_value('notthere').should == false
end
+
+ it 'should cope with colons in value' do
+ @public_body.tag_string = 'url:http://www.flourish.org'
+ @public_body.tag_string.should == 'url:http://www.flourish.org'
+
+ @public_body.has_tag?('url').should be_true
+ @public_body.get_tag_value('url').should == 'http://www.flourish.org'
+ end
end
describe PublicBody, " when making up the URL name" do