aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/public_body_spec.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-07-26 09:01:24 +0100
committerFrancis Irving <francis@mysociety.org>2010-07-26 09:01:24 +0100
commitad5d9603e6893730bc6b129784f48df1ae55789c (patch)
tree2a8d6e9ea253cfd472be5f449bac2aac581e3962 /spec/models/public_body_spec.rb
parent6c507b123109cb2c07e389aa7d88ddc169867332 (diff)
Another test.
Diffstat (limited to 'spec/models/public_body_spec.rb')
-rw-r--r--spec/models/public_body_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb
index d48079ba1..0a0b95041 100644
--- a/spec/models/public_body_spec.rb
+++ b/spec/models/public_body_spec.rb
@@ -23,6 +23,11 @@ describe PublicBody, " using tags" do
@public_body.tag_string.should == 'chesire lancashire'
end
+ it 'should work with other white space' do
+ @public_body.tag_string = "chesire\n\tlancashire"
+ @public_body.tag_string.should == 'chesire lancashire'
+ end
+
it 'should remove tags when changing them' do
@public_body.tag_string = 'stilton'
@public_body.tag_string.should == 'stilton'