diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-06-19 22:06:33 +0300 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-06-20 00:24:19 +0300 |
commit | d866c7763cdaa801a0b6dacf125250c5117843d9 (patch) | |
tree | c49cf62c587a0f9c6831ec1c3a95b7f5fc92dca8 /spec/lib/gitlab | |
parent | e4eeba4e4b33c327d5c95a48103ab5781d15c77c (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.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 |