diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-06-20 20:14:37 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-06-20 20:14:37 +0300 |
commit | af5c7c76ff857e88ebfb74267f3ab6cb910d4155 (patch) | |
tree | 012c3abe5de91de53a321891ea0388e7b3876cf1 /spec/lib | |
parent | 026455cf3af1ca7fee0279f3bed645361dac4b1f (diff) | |
parent | b869a99a743f02873038aeeb07d7b5ffbf4f6d89 (diff) |
Merge branch 'bugfix/html-email-brackets' into 'master'
unwrap links without an href
Closes #27645
See merge request !9045
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/email/reply_parser_spec.rb | 4 |
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 |