lemonldap-ng/lemonldap-ng-manager/t/02-HTML-template.t
Xavier Guimard 0b52c97cfe Use JSON::MaybeXS instead of JSON
JSON::Any used before as been deprecated
2015-12-28 16:35:32 +00:00

22 lines
456 B
Perl

#!/usr/bin/env perl -I pl/lib
use Test::More;
use strict;
use 5.10.0;
require 't/test-lib.pm';
my $res;
ok( $res = get('/'), 'Succeed to get /' );
my %hdrs = @{ $res->[1] };
ok( $res->[0] == 200, 'Return a 200 code' )
or print STDERR "Received" . Dumper($res);
ok( $hdrs{'Content-Type'} =~ /text\/html$/i, 'Content is declared as HTML' );
ok( $res->[2]->[0] =~ /<html/si, 'It contains a html tag' );
count(4);
done_testing( count() );