forked from lix-project/hydra
hydra-create-user: use test_context over test_init
This commit is contained in:
parent
bb9864bad7
commit
12d0d0c176
|
@ -1,17 +1,10 @@
|
|||
use feature 'unicode_strings';
|
||||
use strict;
|
||||
use warnings;
|
||||
use Setup;
|
||||
|
||||
my %ctx = test_init();
|
||||
|
||||
require Hydra::Schema;
|
||||
require Hydra::Model::DB;
|
||||
|
||||
use Test2::V0;
|
||||
|
||||
my $db = Hydra::Model::DB->new;
|
||||
hydra_setup($db);
|
||||
my $ctx = test_context();
|
||||
my $db = $ctx->db();
|
||||
|
||||
subtest "Handling password and password hash creation" => sub {
|
||||
subtest "Creating a user with a plain text password (insecure) stores the password securely" => sub {
|
||||
|
|
Loading…
Reference in a new issue