From 73503d87d3f9f87a73616bd3f4365906c87ae13e Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Mon, 9 May 2022 11:56:15 +0200 Subject: fixes for tests and packageing --- t/Webmail.t | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 't/Webmail.t') diff --git a/t/Webmail.t b/t/Webmail.t index 45eeda9..9218fb1 100644 --- a/t/Webmail.t +++ b/t/Webmail.t @@ -16,14 +16,15 @@ my $pw = JWebmail::Model::ReadMails::MockJSON::VALID_PW; my $t = Test::Mojo->new('JWebmail', { development => { read_mock => 'JWebmail::Model::ReadMails::MockJSON', block_writes => 1 }, i18n => { default_language => DEFAULT_LANGUAGE }, + session => { secure => 'none' }, }); $t->get_ok('/')->status_is(200); subtest login => sub { - $t->post_ok('/login', form => {userid => $user, password => 'x'})->status_is(400); - $t->post_ok('/login', form => {userid => $user, password => 'abcde'})->status_is(401); - $t->post_ok('/login', form => {userid => $user, password => $pw})->status_is(303); + $t->post_ok('/', form => {userid => $user, password => 'x'})->status_is(400); + $t->post_ok('/', form => {userid => $user, password => 'abcde'})->status_is(401); + $t->post_ok('/', form => {userid => $user, password => $pw})->status_is(303); }; -- cgit v1.2.3