Rewrote all the tests and now all tests pass!
[catagits/Web-Session.git] / t / 011_middleware_w_custom_session.t
index 4482078..0b266e5 100644 (file)
@@ -4,17 +4,10 @@ use Test::More;
 use HTTP::Request::Common;
 use HTTP::Cookies;
 
-{
-    package My::Custom::Session;
-    use strict;
-    use warnings;
-    use parent 'Plack::Session';
-}
-
 my $app = sub {
     my $env = shift;
 
-    isa_ok($env->{'plack.session'}, 'My::Custom::Session');
+    isa_ok($env->{'plack.session'}, 't::MyCustomSession');
 
     my $counter = $env->{'plack.session'}->get('counter') || 0;
 
@@ -27,7 +20,7 @@ my $app = sub {
 
 $app = Plack::Middleware::Session->wrap(
     $app,
-    session_class => 'My::Custom::Session'
+    session_class => 't::MyCustomSession'
 );
 
 test_psgi $app, sub {