summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/email
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-06-19 12:06:33 -0700
committerhttp://jneen.net/ <jneen@jneen.net>2017-06-19 14:24:19 -0700
commitd866c7763cdaa801a0b6dacf125250c5117843d9 (patch)
treec49cf62c587a0f9c6831ec1c3a95b7f5fc92dca8 /spec/lib/gitlab/email
parente4eeba4e4b33c327d5c95a48103ab5781d15c77c (diff)
downloadgitlab-ce-d866c7763cdaa801a0b6dacf125250c5117843d9.tar.gz
add a spec for no-href link parsing
Diffstat (limited to 'spec/lib/gitlab/email')
-rw-r--r--spec/lib/gitlab/email/reply_parser_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/email/reply_parser_spec.rb b/spec/lib/gitlab/email/reply_parser_spec.rb
index 28698e89c33..71659d5e8b0 100644
--- a/spec/lib/gitlab/email/reply_parser_spec.rb
+++ b/spec/lib/gitlab/email/reply_parser_spec.rb
@@ -208,5 +208,9 @@ describe Gitlab::Email::ReplyParser, lib: true do
it "properly renders html-only email from MS Outlook" do
expect(test_parse_body(fixture_file("emails/outlook_html.eml"))).to eq("Microsoft Outlook 2010")
end
+
+ it "does not wrap links with no href in unnecessary brackets" do
+ expect(test_parse_body(fixture_file("emails/html_empty_link.eml"))).to eq("no brackets!")
+ end
end
end