X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F07mason.t;h=cbc987f6f2216cdd5e305fa9a0461b9908f10117;hb=28151039c256a63ede134da8366fc20f7f5cff45;hp=afa919045f35067ada45978c4d4ab2e5c6dd5e5b;hpb=8b10ee5587f3331cc2232efad852a2886f6ed0ca;p=catagits%2FCatalyst-View-Email.git diff --git a/t/07mason.t b/t/07mason.t index afa9190..cbc987f 100644 --- a/t/07mason.t +++ b/t/07mason.t @@ -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{test-email\@example.com on $time}, 'got content back'); #like($emails[0]->body, qr/$time/, 'Got our email');