[Dancer-users] Dancer::Test question
Naveed Massjouni
naveedm9 at gmail.com
Sat Mar 5 18:38:19 CET 2011
On Sat, Mar 5, 2011 at 6:25 AM, Alexis Sukrieh <sukria at sukria.net> wrote:
> On 04/03/2011 20:41, Rudolf Muehlbauer wrote:
>>
>> t/003_some_tests.t .... 1/?
>> Can't call method "status" on an undefined value
>> at /usr/local/share/perl/5.10.1/Dancer/Test.pm line 111.
>> # Tests were run but no plan was declared and done_testing() was not
>> seen.
>> t/003_acs_tests.t .... Dubious, test returned 255 (wstat 65280,
>> 0xff00)
>>
>> Anything I could do about this?
>> Any help appreciated!
>
> Use dancer_response instead, you'll be able to pass parameters:
>
> my $response = dancer_response GET => '/path', {
> params => {
> foo => 42
> }
> };
You can also call response_status_is in this way:
response_status_is ['GET', '/path', { params => { foo => 42 } }], 200;
This way is not documented yet.
-Naveed
>
> --
> Alexis Sukrieh
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>
More information about the Dancer-users
mailing list