summaryrefslogtreecommitdiff
path: root/t/Webmail.t
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-09 11:56:15 +0200
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-09 11:56:15 +0200
commit73503d87d3f9f87a73616bd3f4365906c87ae13e (patch)
tree5efb95a41f132d6a75fdb97401ef42467d9bca86 /t/Webmail.t
parentde941df4cb8ef4f95563ef818380f870f442f7cd (diff)
fixes for tests and packageing
Diffstat (limited to 't/Webmail.t')
-rw-r--r--t/Webmail.t7
1 files changed, 4 insertions, 3 deletions
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);
};