Loading t/01-static.t +2 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,8 @@ require "$FindBin::Bin/../index.pl"; my $t = Test::Mojo->new('Travelynx'); $t->ua->on( start => sub { $_[1]->req->headers->accept_language('de-DE') } ); $t->get_ok('/')->status_is(200); $t->text_like( 'a[href="/register"]' => qr{Registrieren} ); $t->text_like( 'a[href="/login"]' => qr{Anmelden} ); Loading t/02-registration.t +4 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ require "$FindBin::Bin/../index.pl"; my $t = Test::Mojo->new('Travelynx'); $t->ua->on( start => sub { $_[1]->req->headers->accept_language('de-DE') } ); if ( not $t->app->config->{db} ) { plan( skip_all => 'No database configured' ); } Loading Loading @@ -206,7 +208,8 @@ $res = $t->app->pg->db->select( 'pending_passwords', ['token'], { user_id => $uid } ); $token = $res->hash->{token}; $t->get_ok("/recover/${uid}/${token}")->status_is(200) $t->get_ok("/recover/${uid}/${token}") ->status_is(200) ->content_like(qr{Neues Passwort eintragen}); $t->post_ok( Loading t/11-journey-stats.t +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ require "$FindBin::Bin/../index.pl"; my $t = Test::Mojo->new('Travelynx'); $t->ua->on( start => sub { $_[1]->req->headers->accept_language('de-DE') } ); if ( not $t->app->config->{db} ) { plan( skip_all => 'No database configured' ); } Loading t/12-journey-edit.t +2 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ use utf8; my $t = Test::Mojo->new('Travelynx'); $t->ua->on( start => sub { $_[1]->req->headers->accept_language('de-DE') } ); if ( not $t->app->config->{db} ) { plan( skip_all => 'No database configured' ); } Loading t/21-relations.t +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ require "$FindBin::Bin/../index.pl"; my $t = Test::Mojo->new('Travelynx'); $t->ua->on( start => sub { $_[1]->req->headers->accept_language('de-DE') } ); if ( not $t->app->config->{db} ) { plan( skip_all => 'No database configured' ); } Loading Loading
t/01-static.t +2 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,8 @@ require "$FindBin::Bin/../index.pl"; my $t = Test::Mojo->new('Travelynx'); $t->ua->on( start => sub { $_[1]->req->headers->accept_language('de-DE') } ); $t->get_ok('/')->status_is(200); $t->text_like( 'a[href="/register"]' => qr{Registrieren} ); $t->text_like( 'a[href="/login"]' => qr{Anmelden} ); Loading
t/02-registration.t +4 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ require "$FindBin::Bin/../index.pl"; my $t = Test::Mojo->new('Travelynx'); $t->ua->on( start => sub { $_[1]->req->headers->accept_language('de-DE') } ); if ( not $t->app->config->{db} ) { plan( skip_all => 'No database configured' ); } Loading Loading @@ -206,7 +208,8 @@ $res = $t->app->pg->db->select( 'pending_passwords', ['token'], { user_id => $uid } ); $token = $res->hash->{token}; $t->get_ok("/recover/${uid}/${token}")->status_is(200) $t->get_ok("/recover/${uid}/${token}") ->status_is(200) ->content_like(qr{Neues Passwort eintragen}); $t->post_ok( Loading
t/11-journey-stats.t +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ require "$FindBin::Bin/../index.pl"; my $t = Test::Mojo->new('Travelynx'); $t->ua->on( start => sub { $_[1]->req->headers->accept_language('de-DE') } ); if ( not $t->app->config->{db} ) { plan( skip_all => 'No database configured' ); } Loading
t/12-journey-edit.t +2 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ use utf8; my $t = Test::Mojo->new('Travelynx'); $t->ua->on( start => sub { $_[1]->req->headers->accept_language('de-DE') } ); if ( not $t->app->config->{db} ) { plan( skip_all => 'No database configured' ); } Loading
t/21-relations.t +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ require "$FindBin::Bin/../index.pl"; my $t = Test::Mojo->new('Travelynx'); $t->ua->on( start => sub { $_[1]->req->headers->accept_language('de-DE') } ); if ( not $t->app->config->{db} ) { plan( skip_all => 'No database configured' ); } Loading