summaryrefslogtreecommitdiff
path: root/t/Webmail.t
diff options
context:
space:
mode:
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);
};