[Catalyst] problem with basic test of auto-generated TTSite code
Leandro Hermida
softdev at leandrohermida.com
Tue Jul 27 14:26:22 GMT 2010
On Tue, Jul 27, 2010 at 4:19 PM, kevin montuori <montuori at gmail.com> wrote:
> On Tue, Jul 27, 2010 at 10:07 AM, Leandro Hermida
> <softdev at leandrohermida.com> wrote:
>
>> Is it because at compile time MyApp doesn't have the path_to() method?
>> How should I write the test?
>
> Perhaps a 'use MyApp' statement?
>
Right, thanks Kevin! I did this in t/view_TT.t and everything works now:
use strict;
use warnings;
use Test::More;
BEGIN { use_ok 'MyApp', 'MyApp::View::TT' }
done_testing();
> k.
>
> --
> kevin montuori
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
More information about the Catalyst
mailing list