Fixed tests
[catagits/Catalyst-View-Email.git] / t / 07mason.t
index 3bfeae3..cbc987f 100644 (file)
@@ -15,7 +15,7 @@ plan tests => 10;
 
 use_ok('Catalyst::Test', 'TestApp');
 
-TestApp->config->{default}->{view} = 'mason';
+TestApp->config->{default_view} = 'Mason';
 
 my $response;
 my $time = time;
@@ -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');