Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

psgi_callback to psgi_app

  • Loading branch information...
commit e0ab81a8b6f6f0643e0f3e24fe390c2be17f4005 1 parent 8fbbe25
Zbigniew Lukasiak authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  app.psgi
  2. +1 −1  lib/Nblog.pm
  3. +3 −3 t/comments.t
View
2  app.psgi
@@ -3,5 +3,5 @@ use Nblog;
my $app = Nblog->new_with_config();
-$app->psgi_callback;
+$app->psgi_app;
View
2  lib/Nblog.pm
@@ -201,7 +201,7 @@ has static_root => (
);
-around psgi_callback => sub {
+around psgi_app => sub {
my $orig = shift;
my $self = shift;
my $cascade = Plack::App::Cascade->new;
View
6 t/comments.t
@@ -8,16 +8,16 @@ use Plack::Builder;
my $app = Nblog->new_with_config();
-my $psgi_callback = builder {
+my $psgi_app = builder {
enable "Plack::Middleware::Static",
path => qr{^/static/}, root => './templates/globals/';
enable "Plack::Middleware::Static",
path => qr{^/favicon.ico$}, root => './templates/globals/static/images/';
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);
my $schema = $app->schema;
Please sign in to comment.
Something went wrong with that request. Please try again.