NAME
Test::Mojo::Plack - Test Plack-compatible applications with Test:Mojo
VERSION
Version 0.06
SYNOPSIS
use Test::Mojo::Plack;
use Test::More;
my $foo = Test::Mojo::Plack->new('My::Catalyst::App');
my $foo = Test::Mojo::Plack->new('My::Dancer::App');
$foo->get_ok("/")
->status_is(200)
->content_type_is('text/html')
->text_is('#footer a.author', 'mendoza@pvv.ntnu.no');
done_testing;
SUBROUTINES/METHODS
new
new($app)
Returns a Test::Mojo::Plack object that is a subclass of Test::Mojo
If $app is provided, it tries to set app a PSGI application by guessing the framework of it.
METHODS
Test::Mojo::Plack inherits all methods from Test::Mojo and overrides the following:
_request_ok
Hijacks the setup and sending of a request to send it to a pre-defined PSGI application.
AUTHOR
Nicolas Mendoza, <mendoza at pvv.ntnu.no>
BUGS
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Test::Mojo::Plack
REPOSITORY
https://github.com/nicomen/test-mojo-plack
ACKNOWLEDGEMENTS
Heavily inspired by Plack::Test and Catalyst::Test and of course Test::Mojo
LICENSE AND COPYRIGHT
Copyright 2014 Nicolas Mendoza.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.