Updated basic test to use fixtures

This commit is contained in:
Tom Bloor 2017-08-31 13:20:24 +01:00
parent 0b6bb47072
commit 6cd3113912

View file

@ -1,15 +1,16 @@
use Mojo::Base -strict; use Mojo::Base -strict;
use FindBin qw/ $Bin /;
use Test::More; use Test::More;
use Test::Mojo; use Test::Pear::LocalLoop;
use FindBin; my $framework = Test::Pear::LocalLoop->new(
etc_dir => "$Bin/etc",
);
$framework->install_fixtures('users');
BEGIN { my $t = $framework->framework;
$ENV{MOJO_MODE} = 'testing';
$ENV{MOJO_LOG_LEVEL} = 'debug';
}
my $t = Test::Mojo->new("Pear::LocalLoop");
$t->get_ok('/')->status_is(200); $t->get_ok('/')->status_is(200);
done_testing(); done_testing();