Fixed tests
J. Shirley [Thu, 22 Jan 2009 14:51:51 +0000 (14:51 +0000)]
t/05template.t
t/06config.t
t/07mason.t

index 10f48f4..2e450f8 100644 (file)
@@ -30,10 +30,10 @@ like($emails[0]->content_type, qr#^multipart/alternative#, 'Multipart email');
 my @parts = $emails[0]->parts;
 cmp_ok(@parts, '==', 2, 'got parts');
 
-is($parts[0]->content_type, 'text/plain; charset="us-ascii"', 'text/plain part ok');
+is($parts[0]->content_type, 'text/plain', 'text/plain part ok');
 like($parts[0]->body, qr/test-email\@example.com on $time/, 'got content back');
 
-is($parts[1]->content_type, 'text/html; charset="us-ascii"', 'text/html ok');
+is($parts[1]->content_type, 'text/html', 'text/html ok');
 like($parts[1]->body, qr{<em>test-email\@example.com</em> on $time}, 'got content back');
 #like($emails[0]->body, qr/$time/, 'Got our email');
 
index 0cb206e..871e35d 100644 (file)
@@ -34,8 +34,8 @@ isa_ok( $emails[0], 'Email::MIME', 'email is ok' );
 my @parts = $emails[0]->parts;
 cmp_ok(@parts, '==', 2, 'got parts');
 
-is($parts[0]->content_type, 'text/plain; charset="us-ascii"', 'text/plain ok');
+is($parts[0]->content_type, 'text/plain', 'text/plain ok');
 like($parts[0]->body, qr/test-email\@example.com on $time/, 'got content back');
-is($parts[1]->content_type, 'text/html; charset="us-ascii"', 'text/html ok');
+is($parts[1]->content_type, 'text/html', 'text/html ok');
 like($parts[1]->body, qr{<em>test-email\@example.com</em> on $time}, 'got content back');
 
index a85ecc3..cbc987f 100644 (file)
@@ -29,9 +29,9 @@ isa_ok( $emails[0], 'Email::MIME', 'email is ok' );
 my @parts = $emails[0]->parts;
 cmp_ok(@parts, '==', 2, 'got parts');
 
-is($parts[0]->content_type, 'text/plain; charset="us-ascii"', 'text/plain ok');
+is($parts[0]->content_type, 'text/plain', 'text/plain ok');
 like($parts[0]->body, qr/test-email\@example.com on $time/, 'got content back');
-is($parts[1]->content_type, 'text/html; charset="us-ascii"', 'text/html ok');
+is($parts[1]->content_type, 'text/html', 'text/html ok');
 like($parts[1]->body, qr{<em>test-email\@example.com</em> on $time}, 'got content back');
 #like($emails[0]->body, qr/$time/, 'Got our email');