[Dancer-users] t/002_index_route.t fails on an unmodified application

sawyer x xsawyerx at gmail.com
Sun Feb 20 17:06:33 CET 2011


Hello again! :)

I fixed the issue in devel, it should be available in the next release with
all the other goodies we've worked on.

Thanks so much for the report!

Sawyer.

On Sun, Feb 20, 2011 at 2:43 PM, sawyer x <xsawyerx at gmail.com> wrote:

> Hi Benjamin,
>
> I can see the reason you're experiencing this issue.
> I'm now raising it with the other devs to find out why it acts the way it
> does and whether we should change it.
>
> The reason you're failing is because Dancer::Test assumes you're running
> from inside the t/ directory.
> You can fix this by calling Dancer::Test as such:
> use Dancer::Test appdir => '.';
>
> I want to fix it though so it doesn't happen at all.
>
> I'll be sure to update.
> Sawyer.
>
>
> On Sat, Feb 19, 2011 at 12:48 PM, Benjamin Nadland <
> benjamin.nadland at freenet.de> wrote:
>
>> On Fri, Feb 18, 2011 at 03:40:35PM +0100, Benjamin Nadland wrote:
>> > I get a weird failing test when I make a new and
>> > unmodified dancer application.
>> > [...]
>> > Any ideas what happens here?
>> >
>> > (I am a Perl/Dancer/Webdevelopment newbie and might be doing something
>> stupid here.
>> > If that is the case I would also be glad to know.)
>>
>> weird. if i try this from the t/ directory, the test passes:
>>
>> (11:44:36)[~/source/webstuff/foobar/t]$ perl -I../lib 002_index_route.t
>> 1..2
>> [20754]  core @0.000058> trying to match `/' against /^\/$/ in
>> /home/bnadland/perl5/lib/perl5/Dancer/Route.pm l. 74
>> [20754]  core @0.001451>   --> got 1 in
>> /home/bnadland/perl5/lib/perl5/Dancer/Route.pm l. 81
>> ok 1 - a route handler is defined for /
>> [20754]  core @0.006864> [hit #2]trying to match `/' against /^\/$/ in
>> /home/bnadland/perl5/lib/perl5/Dancer/Route.pm l. 74
>> [20754]  core @0.007907> [hit #2]  --> got 1 in
>> /home/bnadland/perl5/lib/perl5/Dancer/Route.pm l. 81
>> ok 2 - response status is 200 for /
>>
>> Is there a recommended way to run the tests? I could not find anything
>> in the documentation.
>> _______________________________________________
>> Dancer-users mailing list
>> Dancer-users at perldancer.org
>> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110220/ad0f7210/attachment.htm>


More information about the Dancer-users mailing list