[Catalyst-commits] r9122 - Catalyst-View-Email/0.10/t
jshirley at dev.catalyst.perl.org
jshirley at dev.catalyst.perl.org
Thu Jan 22 14:51:51 GMT 2009
Author: jshirley
Date: 2009-01-22 14:51:51 +0000 (Thu, 22 Jan 2009)
New Revision: 9122
Modified:
Catalyst-View-Email/0.10/t/05template.t
Catalyst-View-Email/0.10/t/06config.t
Catalyst-View-Email/0.10/t/07mason.t
Log:
Fixed tests
Modified: Catalyst-View-Email/0.10/t/05template.t
===================================================================
--- Catalyst-View-Email/0.10/t/05template.t 2009-01-22 01:53:47 UTC (rev 9121)
+++ Catalyst-View-Email/0.10/t/05template.t 2009-01-22 14:51:51 UTC (rev 9122)
@@ -30,10 +30,10 @@
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');
Modified: Catalyst-View-Email/0.10/t/06config.t
===================================================================
--- Catalyst-View-Email/0.10/t/06config.t 2009-01-22 01:53:47 UTC (rev 9121)
+++ Catalyst-View-Email/0.10/t/06config.t 2009-01-22 14:51:51 UTC (rev 9122)
@@ -34,8 +34,8 @@
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');
Modified: Catalyst-View-Email/0.10/t/07mason.t
===================================================================
--- Catalyst-View-Email/0.10/t/07mason.t 2009-01-22 01:53:47 UTC (rev 9121)
+++ Catalyst-View-Email/0.10/t/07mason.t 2009-01-22 14:51:51 UTC (rev 9122)
@@ -29,9 +29,9 @@
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');
More information about the Catalyst-commits
mailing list