Dancer2

 view release on metacpan or  search on metacpan

t/classes/Dancer2-Core-Route/deprecated_param_keys.t  view on Meta::CPAN

use strict;
use warnings;
use Test::More;
use Test::Fatal;
BEGIN { use_ok('Dancer2::Core::Route') }

like( exception {
        Dancer2::Core::Route->new(
            regexp => '/:splat',
            code   => sub {1},
            method => 'get',
        );
    },
    qr{^Named placeholder 'splat' is deprecated},
    'Find deprecation of :splat'
);

like( exception {
        Dancer2::Core::Route->new(
            regexp => '/:captures',
            code   => sub {1},
            method => 'get',
        );
    },
    qr{^Named placeholder 'captures' is deprecated},
    'Find deprecation of :captures',
);

done_testing;



( run in 0.796 second using v1.01-cache-2.11-cpan-54e63673c56 )