use Catalyst qw/Session SessionStateTest/;
push our (@ISA), $m;
+ our $VERSION = "123"; # Do not remove
+
use strict;
use warnings;
ok( !$c->session_delete_reason, "no reason for deletion" );
}
- @{ __PACKAGE__->config->{session} }{ keys %$cfg } = values %$cfg;
+ @{ __PACKAGE__->config->{'Plugin::Session'} }{ keys %$cfg } = values %$cfg;
- __PACKAGE__->setup;
+ { __PACKAGE__->setup; }; # Extra block here is an INSANE HACK to get inlined constructor
+ # (i.e. to make B::Hooks::EndOfScope fire)
}
{
ok( !$c->session->{magic}, "no saved data" );
}
- __PACKAGE__->config->{session}{expires} = 0;
+ __PACKAGE__->config->{'Plugin::Session'}{expires} = 0;
- @{ __PACKAGE__->config->{session} }{ keys %$cfg } = values %$cfg;
+ @{ __PACKAGE__->config->{'Plugin::Session'} }{ keys %$cfg } = values %$cfg;
- __PACKAGE__->setup;
+ { __PACKAGE__->setup; }; # INSANE HACK (the block - as above)
}
use Test::More;