megaurav2002 has asked for the wisdom of the Perl Monks concerning the following question:
Now, all seemed to work fine till i realized that its better to explicitly forward $c to MyApp::View::TT rather than doing in the end method. But after adding this line to my controller action i got this error:my $c = MyApp -> prepare(); MyApp::Controller::MyController::MyAction(undef, $c); ok($c->stash->{template} eq $expected_template_name, "comparing templa +te returned");
I guess this is happening because $c->stash->template does not exist anymore?"Modification of non-creatable array value attempted, subscript -1 at /usr/lib/perl5/vendor_perl/5.8.8/Catalyst/Dispatcher.pm line 186."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Testing Catalyst Views
by Your Mother (Archbishop) on Apr 18, 2008 at 02:17 UTC | |
|
Re: Testing Catalyst Views
by holli (Abbot) on Apr 18, 2008 at 08:17 UTC | |
by Your Mother (Archbishop) on Apr 18, 2008 at 19:29 UTC |