blob: f7f2e53bfa0b4b59a199585d33ea44dea53b19dc [file] [log] [blame]
use Mojo::Base -strict;
use Test::More;
use Test::Mojo;
use Mojo::JSON qw'decode_json';
my $t = Test::Mojo->new('Kalamar');
ok(my $file = $t->app->home->rel_file('kalamar.secret.json'));
ok(-e $file, 'File exists');
my $secrets = decode_json($file->slurp);
ok(@$secrets >= 1);
ok(length $secrets->[0] >= 5);
ok($file->lstat->mode & 0600);
done_testing;