[Dancer-users] Dancer::Test question

Rudolf Muehlbauer rudolf.muehlbauer at gmail.com
Fri Mar 4 20:41:45 CET 2011


Hello Dancer Users, 
        
        
I have a question about Dancer::Test.
        
I use `response_status_is` to test routing and execution in my
application.
        
I can do that successfully 'plain' paths, e.g.:
        
   response_status_is ['GET', '/rest/resource'], 200;
        
But this method fails if i want to use query parameters in the URL,
e.g.:
        
    response_status_is ['GET', '/rest/resource?query=something'], 200;
        
        
In the latter case, Dancer::Test fails (the whole testcase btw)
        
    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!

-- 
Rudolf Muehlbauer <rudolf.muehlbauer at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110304/632a3b0a/attachment.pgp>


More information about the Dancer-users mailing list