- fixed a typo in a the chosen view debug message
Alexander Hartmaier [Mon, 22 Oct 2007 17:46:52 +0000 (17:46 +0000)]
- fixed Mason tests

lib/Catalyst/View/Email/Template.pm
t/07mason.t
t/lib/TestApp/Controller/Root.pm

index 96fd76c..fa5faee 100644 (file)
@@ -165,7 +165,7 @@ sub _generate_part {
     # else fallback to Catalysts default view
     else {
         $view = $c->view;
-        $c->log->debug("C::V::Email::Template uses back to catalysts default view $view for rendering.") if $c->debug;;
+        $c->log->debug("C::V::Email::Template uses Catalysts default view $view for rendering.") if $c->debug;;
     }
 
     # validate the per template view
index 3bfeae3..a85ecc3 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;
index fcaab54..ac9cee6 100644 (file)
@@ -128,12 +128,12 @@ sub mason_email : Global('mason_email') {
         subject => 'Just a test',
         templates => [
             {
-                template        => 'text_plain/test.tt',
+                template        => 'text_plain/test.m',
                 content_type    => 'text/plain',
             },
             {
                 view            => 'Mason',
-                template        => 'text_html/test.tt',
+                template        => 'text_html/test.m',
                 content_type    => 'text/html',
             },
         ],