X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fconfig_backend_class.t;h=2ba772de8eb6661e86c8183d9e707fe0818898b2;hb=8429b634633125340328b82dd670d12a1e58bb5f;hp=d03e76bb2048bdb35356d8377f5c7bc82413a182;hpb=f5989257194519aa99d35e83c88a556cf023f3fc;p=catagits%2FCatalyst-Plugin-Cache.git diff --git a/t/config_backend_class.t b/t/config_backend_class.t index d03e76b..2ba772d 100644 --- a/t/config_backend_class.t +++ b/t/config_backend_class.t @@ -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" );