Jonathan Rockway > Angerwhale-0.062 > Angerwhale::Test::Application

Download:
Angerwhale-0.062.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View Bugs
Report a bug
Source  

NAME ^

Angerwhale::Test::Application - return fake catalyst/angerwhale application/context ($c) for tests

EXPORT ^

context, model

FUNCTIONS ^

context(\%args)

Return an angerwhale context. Args can be:

config

Hashref of $c-config>. See Catalyst::config.

model($model_name, { context=> $c, args => { args ... } } )

Returns an instance of $model_name, where $model_name is an Angerwhale::Model. Uses the application object created by context, or context from the args if you provide one.