diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-09-13 08:44:59 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-09-13 08:44:59 +0100 |
commit | d1b272489fbb2d740d7cc88d4fd43d6bc1b7348a (patch) | |
tree | fb009bc4ca3a14d939d9abcd51654882d78c619b /spec/models/public_body_spec.rb | |
parent | 66d4ede0a6951431b34d2414e6b56f65e9aaaf0b (diff) | |
parent | 1ef24aed444d811b3d33b0840067722248f09c4f (diff) |
Merge branch 'feature/faster-public-body-csv' into develop
Diffstat (limited to 'spec/models/public_body_spec.rb')
-rw-r--r-- | spec/models/public_body_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb index 9e22a9c43..011824190 100644 --- a/spec/models/public_body_spec.rb +++ b/spec/models/public_body_spec.rb @@ -407,6 +407,7 @@ describe PublicBody, " when loading CSV files" do end describe PublicBody do + describe "calculated home page" do it "should return the home page verbatim if it's present" do public_body = PublicBody.new @@ -438,4 +439,17 @@ describe PublicBody do public_body.calculated_home_page.should == "https://example.com" end end + + describe 'when asked for notes without html' do + + before do + @public_body = PublicBody.new(:notes => 'some <a href="/notes">notes</a>') + end + + it 'should remove simple tags from notes' do + @public_body.notes_without_html.should == 'some notes' + end + + end + end |