fix test
Yuval Kogman [Fri, 15 Sep 2006 15:12:13 +0000 (15:12 +0000)]
t/config_backend_class.t

index d03e76b..2ba772d 100644 (file)
@@ -13,8 +13,8 @@ use ok "Catalyst::Plugin::Cache";
 
     package MyCache;
     sub new {
-        my ( $class, @p ) = @_;
-        bless \@p, $class;
+        my ( $class, $p ) = @_;
+        bless { %$p }, $class;
     }
     sub get {}
     sub set {}
@@ -32,5 +32,5 @@ my $registered = MockApp->get_cache_backend( "foo" );
 
 ok( $registered, "registered a backend" );
 
-is_deeply( $registered, MyCache->new( param => "foo" ), "params sent correctly" );
+is_deeply( $registered, MyCache->new({ param => "foo" }), "params sent correctly" );