X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=t%2F07_bugreport.t;h=0e99f7f1ad69e4dbc7074c7fbf7eb27f6dc15f18;hb=79de51023611557f8da946e48b91c4078d63393b;hp=fbbb09fdd6a1600be859908e6ce0d07646cd2850;hpb=509dc1d30d2083164bf434e52348065b03fa8787;p=debbugs.git diff --git a/t/07_bugreport.t b/t/07_bugreport.t index fbbb09f..0e99f7f 100644 --- a/t/07_bugreport.t +++ b/t/07_bugreport.t @@ -1,7 +1,7 @@ # -*- mode: cperl;-*- -use Test::More tests => 18; +use Test::More tests => 19; use warnings; use strict; @@ -37,7 +37,9 @@ send_message(to=>'submit@bugs.something', Package: foo Severity: normal -This is a silly bug +This is a silly bug which contains an unescaped From line. + +From line EOF @@ -91,6 +93,9 @@ ok($mech->content() =~ qr/Subject: Submitting a bug/i, 'Subject of bug maibox is right'); ok($mech->content() =~ qr/^From /m, 'Starts with a From appropriately'); +ok($mech->content() =~ qr/^(>F|=46)rom line/m, + 'From line escaped appropriately'); +print STDERR $mech->content(); $mech->get_ok('http://localhost:'.$port.'/?bug=1;mboxmaint=yes', 'Page received ok');