diff options
author | Francis Irving <francis@mysociety.org> | 2010-07-26 09:16:48 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-07-26 09:16:48 +0100 |
commit | f6d8ce6fbdc1b91592b6f0222add0acd3dbba792 (patch) | |
tree | e39bbfc47a22299d5fc601b5c6b4a9e1aa8634bd /spec/models/public_body_spec.rb | |
parent | ad5d9603e6893730bc6b129784f48df1ae55789c (diff) |
Make test work even when not explicitly saving
Diffstat (limited to 'spec/models/public_body_spec.rb')
-rw-r--r-- | spec/models/public_body_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb index 0a0b95041..b03954373 100644 --- a/spec/models/public_body_spec.rb +++ b/spec/models/public_body_spec.rb @@ -23,12 +23,12 @@ describe PublicBody, " using tags" do @public_body.tag_string.should == 'chesire lancashire' end - it 'should work with other white space' do + it 'should work with other white space, such as tabs and new lines' do @public_body.tag_string = "chesire\n\tlancashire" @public_body.tag_string.should == 'chesire lancashire' end - it 'should remove tags when changing them' do + it 'changing tags should remove presence of the old ones' do @public_body.tag_string = 'stilton' @public_body.tag_string.should == 'stilton' @@ -36,6 +36,7 @@ describe PublicBody, " using tags" do @public_body.has_tag?('jarlsberg').should be_false @public_body.tag_string = 'jarlsberg' + @public_body.tag_string.should == 'jarlsberg' @public_body.has_tag?('stilton').should be_false @public_body.has_tag?('jarlsberg').should be_true |