From 03375a0828f0cb2c93c59a304c5298de52e9c52d Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 4 May 2020 15:43:08 -0300 Subject: [PATCH] Bug 25327: Regression tests Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- t/db_dependent/api/v1/auth.t | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/api/v1/auth.t b/t/db_dependent/api/v1/auth.t index 2daab59260..2003ac657c 100644 --- a/t/db_dependent/api/v1/auth.t +++ b/t/db_dependent/api/v1/auth.t @@ -17,7 +17,7 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::More tests => 3; use Test::Mojo; use Test::Warn; @@ -126,6 +126,17 @@ subtest 'CORS support' => sub { ->header_is( 'Access-control-allow-origin', '*', 'Header set' ); }; +subtest 'spec retrieval tests' => sub { + + plan tests => 4; + + $t->get_ok("/api/v1/") + ->status_is(200); + + $t->get_ok("/api/v1/.html") + ->status_is(200); +}; + sub create_user_and_session { my $user = $builder->build( { -- 2.20.1