[siesta-commit] siesta/t 10plugin_subjecttag.t,1.1,1.2

[prev] [thread] [next] [lurker] [Date index for 2002/08/23]

From: clampr
Subject: [siesta-commit] siesta/t 10plugin_subjecttag.t,1.1,1.2
Date: 19:45 on 23 Aug 2002
Update of /cvsroot/siesta/siesta/t
In directory usw-pr-cvs1:/tmp/cvs-serv30636/t

Modified Files:
	10plugin_subjecttag.t 
Log Message:
allow for null subjects

Index: 10plugin_subjecttag.t
===================================================================
RCS file: /cvsroot/siesta/siesta/t/10plugin_subjecttag.t,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- 10plugin_subjecttag.t	23 Aug 2002 15:20:30 -0000	1.1
+++ 10plugin_subjecttag.t	23 Aug 2002 18:45:19 -0000	1.2
@@ -1,6 +1,6 @@
 #!perl -w
 use strict;
-use Test::More tests => 7;
+use Test::More tests => 9;
 use Test::MockObject;
 
 use Siesta::Message;
@@ -21,3 +21,7 @@
 $mail->subject( "Re: [cockknocker] Mark Hamill\n" );
 ok( !$plugin->process( $mail ) );
 is( $mail->subject, "Re: [cockknocker] Mark Hamill\n", "okay with Re: lines" );
+
+$mail->subject( "" );
+ok( !$plugin->process( $mail ) );
+is( $mail->subject, "[cockknocker] no subject\n", "null subject handling" );



Generated at 13:57 on 01 Jul 2004 by mariachi 0.52