Lines 71-77
subtest 'Bad plugins tests' => sub {
Link Here
|
71 |
# Support placeholders () and <> (latter style used starting with Mojolicious::Plugin::OpenAPI@1.28) |
71 |
# Support placeholders () and <> (latter style used starting with Mojolicious::Plugin::OpenAPI@1.28) |
72 |
# TODO: remove () if minimum version is bumped to at least 1.28. |
72 |
# TODO: remove () if minimum version is bumped to at least 1.28. |
73 |
ok( !exists $routes->{'/contrib/badass/patrons/(:patron_id)/bother_wrong'} && !exists $routes->{'/contrib/badass/patrons/<:patron_id>/bother_wrong'}, 'Route doesn\'t exist' ); |
73 |
ok( !exists $routes->{'/contrib/badass/patrons/(:patron_id)/bother_wrong'} && !exists $routes->{'/contrib/badass/patrons/<:patron_id>/bother_wrong'}, 'Route doesn\'t exist' ); |
74 |
ok( exists $routes->{'/contrib/testplugin/patrons/(:patron_id>)/bother'} || exists $routes->{'/contrib/testplugin/patrons/<:patron_id>/bother'}, 'Route exists' ); |
74 |
ok( exists $routes->{'/contrib/testplugin/patrons/(:patron_id)/bother'} || exists $routes->{'/contrib/testplugin/patrons/<:patron_id>/bother'}, 'Route exists' ); |
75 |
|
75 |
|
76 |
$schema->storage->txn_rollback; |
76 |
$schema->storage->txn_rollback; |
77 |
}; |
77 |
}; |
78 |
- |
|
|