diff options
-rw-r--r-- | spec/libs/format_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/libs/format_spec.rb b/spec/libs/format_spec.rb index df25a78c2..a97e7cd9e 100644 --- a/spec/libs/format_spec.rb +++ b/spec/libs/format_spec.rb @@ -12,12 +12,14 @@ describe "when making clickable" do it "should make wrapped URLs in angle brackets clickable" do text = """<http://www.flou rish.org/bl -og>""" +og> + +More stuff and then another angle bracket >""" text = CGI.escapeHTML(text) formatted = MySociety::Format.make_clickable(text) - formatted.should == "<<a href='http://www.flourish.org/blog'>http://www.flourish.org/blog</a>>" + formatted.should == "<<a href='http://www.flourish.org/blog'>http://www.flourish.org/blog</a>>\n\nMore stuff and then another angle bracket >" end end |