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.