yanick / Dancer2-Plugin-REST

2 stars 13 forks source link

change parameters for Dancer2 compatibility and so tests pass #3

Closed grtodd closed 11 years ago

grtodd commented 11 years ago

:syntax' has been removed from Dancer2

use Dancer2::Plugin::REST;

fails like this: /home/web/perl5/lib/perl5/Dancer2.pm:53:parameters to 'use Dancer2' should be one of : 'key => value', ':tests', ':script', or !, where is a DSL keyword you don't want to import

Tests fail like this:

t/02_prepare_serializer_for_format.t .. Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run parameters to 'use Dancer2' should be one of : 'key => value', ':tests', ':script', or !, where is a DSL keyword you don't want to import at /home/web/perl5/lib/perl5/Dancer2.pm line 53.lugin-REST-0.12/blib/lib/Dancer2/Plugin/REST.pm line 15.

Probably more to do, but this simple change allows test to pass.

grtodd commented 11 years ago

More indeed is needed :-) Dancer2::Plugin::REST needs to be wired up to work with Dancer2::Core::DSL->dsl_keywords etc. I f I can grok necessary changes I will add them as new pull request. You can close this one. Sorry for noise, cheers.