Angerwhale::Test - Test Angerwhale
use Angerwhale::Test (description => 'test blog', title => 'test blog',); my $mech = Angerwhale::Test->new; my $tmp = $mech->tmp; # post an article $tmp->touch('article1', "This is an article."); $mech->get_ok('http://localhost/articles/article1'); return; # article is cleaned up automatically
Subclasses Test::WWW::Mechanize::Catalyst.
Import the module, setup config, create tmp basedir.
Create a new Mech object (etc.).
Return Directory::Scratch object representing temp dir.
Post a new article. Args are title, body, type ...
Optionally you can pass a string instead of args, in which case the string will be the title and the body.
To install Angerwhale, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Angerwhale
CPAN shell
perl -MCPAN -e shell install Angerwhale
For more information on module installation, please visit the detailed CPAN module installation guide.