[Seaside] Where to store db connection value?
chad at clearwaterassociates.ca
Wed Oct 19 20:55:51 UTC 2005
I followed these instructions and it still won't work. When my
functional test throws an error, I inspect the value of
app>>sessionClass and it says it's nil.
On 10/19/05, David Shaffer <cdshaffer at acm.org> wrote:
> Chad Nantais wrote:
> >How do I set the testing app to us MYCustomSession class?
> If I understand your question (which maybe I don't) then the answer is
> in the same code in the tutorial:
> configureApplicationForComponent: aComponentClass
> super configureApplicationForComponent: aComponentClass.
> app configuration addAncestor: MyCustomConfiguration localConfiguration.
> app preferenceAt: #sessionClass put: MyCustomSession.
> FakeMailer reset.
> app preferenceAt: #mailerFactory put: FakeMailer
> Here you see the "app preferenceAt: #sessionClass put: MyCustomSession".
> This should cause that class to be the session class of the app being
> tested. If it isn't working then please let me know ;-)
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
Chad Nantais, CISSP
"Let him who would move the world first move himself." --Socrates
More information about the Seaside