Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
use Modern::Perl;
-use Test::More tests => 2;
+use Test::More tests => 3;
use Test::Mojo;
use Test::Warn;
->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(
{