[Catalyst] Modify config in a test

Manni Heumann heumann at strato-rz.de
Wed Sep 26 08:15:34 GMT 2012

Bill Moseley <moseley at hank.org> schrieb am 25.09.2012:

> The app has a myapp.yml config which includes configuration for
> creating an instance of a Model component -- and part of that Model's
> config is a database dsn attribute.   When running my test I do want
> to have the app load this config file -- but I want to modify it
> on-the-fly.

Why? Why not simply create a myapp_test.yml file and set
CATALYST_CONFIG_LOCAL_SUFFIX to "test" when you run your test-suite?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20120926/4858120c/signature.pgp

More information about the Catalyst mailing list