Skip to content

Commit

Permalink
psgi_callback to psgi_app
Browse files Browse the repository at this point in the history
  • Loading branch information
Zbigniew Lukasiak committed Jan 3, 2011
1 parent 8fbbe25 commit e0ab81a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app.psgi
Expand Up @@ -3,5 +3,5 @@ use Nblog;


my $app = Nblog->new_with_config(); my $app = Nblog->new_with_config();


$app->psgi_callback; $app->psgi_app;


2 changes: 1 addition & 1 deletion lib/Nblog.pm
Expand Up @@ -201,7 +201,7 @@ has static_root => (
); );




around psgi_callback => sub { around psgi_app => sub {
my $orig = shift; my $orig = shift;
my $self = shift; my $self = shift;
my $cascade = Plack::App::Cascade->new; my $cascade = Plack::App::Cascade->new;
Expand Down
6 changes: 3 additions & 3 deletions t/comments.t
Expand Up @@ -8,16 +8,16 @@ use Plack::Builder;


my $app = Nblog->new_with_config(); my $app = Nblog->new_with_config();


my $psgi_callback = builder { my $psgi_app = builder {
enable "Plack::Middleware::Static", enable "Plack::Middleware::Static",
path => qr{^/static/}, root => './templates/globals/'; path => qr{^/static/}, root => './templates/globals/';
enable "Plack::Middleware::Static", enable "Plack::Middleware::Static",
path => qr{^/favicon.ico$}, root => './templates/globals/static/images/'; path => qr{^/favicon.ico$}, root => './templates/globals/static/images/';
enable 'Session'; enable 'Session';
$app->psgi_callback;; $app->psgi_app;;
}; };


my $mech = Test::WWW::Mechanize::PSGI->new( app => $psgi_callback ); my $mech = Test::WWW::Mechanize::PSGI->new( app => $psgi_app );
use String::Random qw(random_string random_regex); use String::Random qw(random_string random_regex);


my $schema = $app->schema; my $schema = $app->schema;
Expand Down

0 comments on commit e0ab81a

Please sign in to comment.