diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-09-13 14:50:59 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-09-13 14:50:59 +0100 |
commit | 1e2b6a8acf65f48edb1e03f4f024db9644765897 (patch) | |
tree | d8b87e874e383fcac83e29cf05673606c946fc4e /spec/models/public_body_spec.rb | |
parent | bd94b0390fcfba53bee7d546227e94e860f37c17 (diff) | |
parent | 6d3d9d9846fa905e606f0a2aa6f1ec32122f4850 (diff) |
Merge branch 'wdtk' of git.mysociety.org:/data/git/public/alaveteli into wdtk
Diffstat (limited to 'spec/models/public_body_spec.rb')
-rw-r--r-- | spec/models/public_body_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb index 8ff6afde3..9e22a9c43 100644 --- a/spec/models/public_body_spec.rb +++ b/spec/models/public_body_spec.rb @@ -222,6 +222,10 @@ describe PublicBody, "when searching" do body.name.should == "El A Geraldine Quango" end end + + it 'should not raise an error on a name with a single quote in it' do + body = PublicBody.find_by_url_name_with_historic("belfast city council'") + end end describe PublicBody, " when dealing public body locales" do |