Updated basic test to use fixtures
This commit is contained in:
parent
0b6bb47072
commit
6cd3113912
1 changed files with 9 additions and 8 deletions
17
t/basic.t
17
t/basic.t
|
@ -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();
|
||||||
|
|
Reference in a new issue