X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fsub-dispatch-args.t;h=71fc4eba44d5f72c42ebfb752037202d0e5c0a5e;hb=c62cf40ac80b302b71683630b11b6157f018ba4a;hp=a5f3fa4ac13f081f279a9815c2f63a201a40c9b8;hpb=9c7c20f67d863a7c7a0f80cfa8aa4d0e48486e2a;p=catagits%2FWeb-Simple.git diff --git a/t/sub-dispatch-args.t b/t/sub-dispatch-args.t index a5f3fa4..71fc4eb 100644 --- a/t/sub-dispatch-args.t +++ b/t/sub-dispatch-args.t @@ -34,6 +34,7 @@ use Plack::Test; sub show_landing { my ($self, @args) = @_; local $self->{_dispatcher}; + local $args[-1]->{'Web::Dispatch.original_env'}; return [ 200, ['Content-Type' => 'application/perl' ], [::Dumper \@args], @@ -42,6 +43,7 @@ use Plack::Test; sub show_users { my ($self, @args) = @_; local $self->{_dispatcher}; + local $args[-1]->{'Web::Dispatch.original_env'}; return [ 200, ['Content-Type' => 'application/perl' ], [::Dumper \@args], @@ -50,6 +52,7 @@ use Plack::Test; sub show_user { my ($self, @args) = @_; local $self->{_dispatcher}; + local $args[-1]->{'Web::Dispatch.original_env'}; return [ 200, ['Content-Type' => 'application/perl' ], [::Dumper \@args], @@ -58,6 +61,7 @@ use Plack::Test; sub process_post { my ($self, @args) = @_; local $self->{_dispatcher}; + local $args[-1]->{'Web::Dispatch.original_env'}; return [ 200, ['Content-Type' => 'application/perl' ], [::Dumper \@args],