[Dancer-users] Dancer::Test question
Alexis Sukrieh
sukria at sukria.net
Sat Mar 5 12:25:13 CET 2011
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
}
};
--
Alexis Sukrieh
More information about the Dancer-users
mailing list