summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-18 14:52:51 -0400
committerDaniel Friesel <derf@finalrewind.org>2019-04-18 14:52:51 -0400
commit4aa83625d3b6e05e8c2a48e1a70f0b4618ba63da (patch)
tree46c1a4ebe509eb572078a27848685a05017d2f31 /t
parenteff979081c9883552956f700597d675b7e849242 (diff)
basic test: No DB needed; perltidy
Diffstat (limited to 't')
-rw-r--r--t/01-static.t12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/01-static.t b/t/01-static.t
index 3f4b152..9b0906a 100644
--- a/t/01-static.t
+++ b/t/01-static.t
@@ -8,27 +8,27 @@ use Test::Mojo;
use FindBin;
require "$FindBin::Bin/../index.pl";
-my $t = Test::Mojo->new(Travelynx => {db => {user => 'travelynx_temp'}});
+my $t = Test::Mojo->new('Travelynx');
$t->get_ok('/')->status_is(200);
-$t->text_like('a[href="/register"]' => qr{Registrieren});
-$t->text_like('a[href="/login"]' => qr{Anmelden});
+$t->text_like( 'a[href="/register"]' => qr{Registrieren} );
+$t->text_like( 'a[href="/login"]' => qr{Anmelden} );
$t->get_ok('/register')->status_is(200);
$t->element_exists('input[name="csrf_token"]');
$t->element_exists('a[href="/impressum"]');
-$t->text_like('button' => qr{Registrieren});
+$t->text_like( 'button' => qr{Registrieren} );
$t->get_ok('/login')->status_is(200);
$t->element_exists('input[name="csrf_token"]');
-$t->text_like('button' => qr{Anmelden});
+$t->text_like( 'button' => qr{Anmelden} );
$t->get_ok('/about')->status_is(200);
# Protected sites should redirect to login form
for my $protected (qw(/account /change_password /history /s/EE)) {
- $t->get_ok($protected)->text_like('button' => qr{Anmelden});
+ $t->get_ok($protected)->text_like( 'button' => qr{Anmelden} );
}
# Otherwise, we expect a 404