Skip to content

Commit ddd7949

Browse files
committed
add test case from #23
1 parent dc9c6af commit ddd7949

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

test/email_reply_parser_test.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ def test_one_is_not_on
181181
assert_match /^On Oct 1, 2012/, reply.fragments[1].to_s
182182
end
183183

184+
def test_mulitple_on
185+
reply = email("greedy_on")
186+
assert_match /^On your remote host/, reply.fragments[0].to_s
187+
assert_match /^On 9 Jan 2014/, reply.fragments[1].to_s
188+
assert_equal [false, true, false], reply.fragments.map { |f| f.quoted? }
189+
assert_equal [false, false, false], reply.fragments.map { |f| f.signature? }
190+
assert_equal [false, true, true], reply.fragments.map { |f| f.hidden? }
191+
end
192+
184193
def test_pathological_emails
185194
t0 = Time.now
186195
reply = email("pathological")

test/emails/greedy_on.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
On your remote host you can run:
2+
3+
telnet 127.0.0.1 52698
4+
5+
This should connect to TextMate (on your Mac, via the tunnel). If that
6+
fails, the tunnel is not working.
7+
8+
On 9 Jan 2014, at 2:47, George Plymale wrote:
9+
10+
> I am having an odd issue wherein suddenly port forwarding stopped
11+
> working in a particular scenario for me. By default I have ssh set to
12+
> use the following config (my ~/.ssh/config file):
13+
> […]
14+
> ---
15+
> Reply to this email directly or view it on GitHub:
16+
> https://github.com/textmate/rmate/issues/29

0 commit comments

Comments
 (0)