Permalink
Browse files

psgi_callback to psgi_app

  • Loading branch information...
1 parent 8fbbe25 commit e0ab81a8b6f6f0643e0f3e24fe390c2be17f4005 Zbigniew Lukasiak committed Jan 3, 2011
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
@@ -3,5 +3,5 @@ use Nblog;
my $app = Nblog->new_with_config();
-$app->psgi_callback;
+$app->psgi_app;
View
@@ -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
@@ -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;

0 comments on commit e0ab81a

Please sign in to comment.