use C3 in the tests also
Jonathan Rockway [Fri, 24 Apr 2009 20:05:57 +0000 (15:05 -0500)]
t/lib/TestApp/Model/Test.pm
t/preserve-object.t

index a870eaf..7f702af 100644 (file)
@@ -8,7 +8,7 @@ use base qw(Catalyst::Component::ACCEPT_CONTEXT Catalyst::Model);
 my $foo = 'bar';
 sub new {
     my $self = shift;
-    $self = $self->NEXT::new(@_);
+    $self = $self->next::method(@_);
     $foo = $self->context->config->{foo};
     return $self;
 }
index 92e84fe..79d5afd 100644 (file)
@@ -21,7 +21,7 @@ is $foo->context->{ctx}, 'it is', 'got ctx';
 
     sub new {
         my $class = shift;
-        return $class->NEXT::new(@_);
+        return $class->next::method(@_);
     }
 
 }