From 908bf5275da6fc0db6aa1b6af4a8718d23fe94dc Mon Sep 17 00:00:00 2001 From: Mason James Date: Tue, 4 Feb 2020 17:20:27 +1300 Subject: [PATCH] Bug 22522: [19.11.x] Fix route typo Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- t/db_dependent/Koha/REST/Plugin/PluginRoutes.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t b/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t index 6444d8bc64..278137fda0 100644 --- a/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t +++ b/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t @@ -71,7 +71,7 @@ subtest 'Bad plugins tests' => sub { # Support placeholders () and <> (latter style used starting with Mojolicious::Plugin::OpenAPI@1.28) # TODO: remove () if minimum version is bumped to at least 1.28. ok( !exists $routes->{'/contrib/badass/patrons/(:patron_id)/bother_wrong'} && !exists $routes->{'/contrib/badass/patrons/<:patron_id>/bother_wrong'}, 'Route doesn\'t exist' ); - ok( exists $routes->{'/contrib/testplugin/patrons/(:patron_id>)/bother'} || exists $routes->{'/contrib/testplugin/patrons/<:patron_id>/bother'}, 'Route exists' ); + ok( exists $routes->{'/contrib/testplugin/patrons/(:patron_id)/bother'} || exists $routes->{'/contrib/testplugin/patrons/<:patron_id>/bother'}, 'Route exists' ); $schema->storage->txn_rollback; }; -- 2.20.1