Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-06-20 20:14:37 +0300
committerDouwe Maan <douwe@gitlab.com>2017-06-20 20:14:37 +0300
commitaf5c7c76ff857e88ebfb74267f3ab6cb910d4155 (patch)
tree012c3abe5de91de53a321891ea0388e7b3876cf1 /spec/lib
parent026455cf3af1ca7fee0279f3bed645361dac4b1f (diff)
parentb869a99a743f02873038aeeb07d7b5ffbf4f6d89 (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.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