Checking in changes prior to tagging of version 0.10018.
[catagits/Catalyst-Plugin-Authentication.git] / t / lib / RemoteTestApp1.pm
index 669cf10..30c3831 100644 (file)
@@ -6,7 +6,9 @@ use Catalyst qw/
 /;
 
 use base qw/Catalyst/;
-__PACKAGE__->engine_class('RemoteTestEngine');
+unless ($Catalyst::VERSION >= 5.89000) {
+    __PACKAGE__->engine_class('RemoteTestEngine');
+}
 __PACKAGE__->config(
     'Plugin::Authentication' => {
         default_realm => 'remote',
@@ -25,8 +27,11 @@ __PACKAGE__->config(
         },
     },
 );
-
 __PACKAGE__->setup;
+if ($Catalyst::VERSION >= 5.89000) {
+    require RemoteTestEngineRole;
+    RemoteTestEngineRole->meta->apply(__PACKAGE__->engine);
+}
 
 1;