diff options
author | Francis Irving <francis@mysociety.org> | 2010-07-27 01:25:23 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-07-27 01:25:23 +0100 |
commit | 96adf4afbe8cb276f869633837184cc8770925a1 (patch) | |
tree | 71da020978a6d88196f5db4a121d60ef8c6c6e97 /spec/models | |
parent | 6a524784418c6de1a5e06b97fc316de185de816f (diff) |
Remove charity number field
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/public_body_spec.rb | 8 |
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 |