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
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-06-19 22:06:33 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2017-06-20 00:24:19 +0300
commitd866c7763cdaa801a0b6dacf125250c5117843d9 (patch)
treec49cf62c587a0f9c6831ec1c3a95b7f5fc92dca8 /spec/lib/gitlab
parente4eeba4e4b33c327d5c95a48103ab5781d15c77c (diff)
add a spec for no-href link parsing
Diffstat (limited to 'spec/lib/gitlab')
-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