HI Yao,

I solved this by reverse-engineering the context with a debug session
($DB::single=1).
In short, $c is an instance of MyApp.  You may have to manually instantiate
some of the internal hashes, etc for the needs of the test target.  I'll
assume that if you're truly unit-testing, you'll be mocking the other
externals of your controller.

Hope that helps.

-- 
Peter Fitzgibbons
------------------------------
iPhone -- "IT"-ness.
href=
http://www.macdailynews.com/index.php/weblog/comments/apples_iphone_could_become_iconic_it_object
------------------------------
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to