sukria/Dancer — Issue #734: Maybe an issue with 02_exceptions.t
Author: birdy-
Created: 2012-01-27 10:25:15+00:00
State: open

I'm new to Perl and Dancer, well I tried to install Dancer 1.391 (stable release). A simple "curl -L http://cpanmin.us | perl - --sudo Dancer" fails with this message :

# Failed test at t/25_exceptions/02_exceptions.t line 133.
# got: 'test - invalid credentials : wrong login (login was douglas) at t/25_exceptions/02_exceptions.t line 130
# '
# expected: 'test - invalid credentials : wrong login (login was douglas)'
# Looks like you failed 1 test of 26.
t/25_exceptions/02_exceptions.t ................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/26 subtests

It seems that my exception throws a too verbose message, with the line and the filename. I managed to install Dancer when I commented these lines :
is($e, 'test - invalid credentials : wrong login (login was douglas)');
ok($e eq 'test - invalid credentials : wrong login (login was douglas)');
ok('test - invalid credentials : wrong login (login was douglas)' eq $e);

Maybe it's me, maybe I should have desactivate something somewhere. Like I said : I'm pretty new, be gentle :p