aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/libs/format_spec.rb6
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 == "&lt;<a href='http://www.flourish.org/blog'>http://www.flourish.org/blog</a>&gt;"
+ formatted.should == "&lt;<a href='http://www.flourish.org/blog'>http://www.flourish.org/blog</a>&gt;\n\nMore stuff and then another angle bracket &gt;"
end
end