[jifty-devel] Using Jifty::Config::postload to override config during testing

Jesse Vincent jesse at bestpractical.com
Thu Jun 1 22:33:28 EDT 2006

On Thu, Jun 01, 2006 at 06:46:16PM -0400, Sean E. Millichamp wrote:
> I want to use Jifty::Config::postload to override a config option
> (specifically, framework('Database')->{'RecordBaseClass'}) to help me
> write some tests for Jifty that I hope will help me hunt down what I
> think is a caching related Jifty::Record/Jifty::DBI bug.
> Unfortunately, I haven't been successfully in figuring out how to use
> postload yet and there aren't any existing tests that use it which I can
> go off of.
> Any pointers on how to override RecordBaseClass in a test would be
> greatly appreciated.

Have you ad a look at Jifty::Test?

In sub setup, there's code that should show off what you need to do.

> Sean
> -- 
>  Sean E. Millichamp, Enertron LLC, 586-757-1200 x102

> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel


More information about the jifty-devel mailing list