Skip to content

Commit 33ccba0

Browse files
committed
Add failing test for team mention case
1 parent 5163940 commit 33ccba0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/email_reply_parser_test.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ def test_parse_out_just_top_for_outlook_with_no_line
165165
assert_equal "Outlook with a reply directly above line", EmailReplyParser.parse_reply(body)
166166
end
167167

168+
def test_parse_out_just_top_for_outlook_with_no_line_and_team_mention
169+
body = IO.read EMAIL_FIXTURE_PATH.join("outlook_email_with_team_mention.txt").to_s
170+
assert_equal "Outlook email reply with a team mention in the email body.", EmailReplyParser.parse_reply(body)
171+
end
172+
168173
def test_parse_out_sent_from_iPhone
169174
body = IO.read EMAIL_FIXTURE_PATH.join("email_iPhone.txt").to_s
170175
assert_equal "Here is another email", EmailReplyParser.parse_reply(body)

0 commit comments

Comments
 (0)