diff options
Diffstat (limited to 't')
| -rw-r--r-- | t/11-journey-stats.t | 20 | ||||
| -rw-r--r-- | t/12-journey-edit.t | 24 | 
2 files changed, 22 insertions, 22 deletions
| diff --git a/t/11-journey-stats.t b/t/11-journey-stats.t index 4623402..3fc8724 100644 --- a/t/11-journey-stats.t +++ b/t/11-journey-stats.t @@ -82,11 +82,11 @@ $t->post_ok(  		action          => 'save',  		train           => 'RE 42 11238',  		dep_station     => 'EMSTP', -		sched_departure => '16.10.2018 17:36', -		rt_departure    => '16.10.2018 17:36', +		sched_departure => '2018-10-16T17:36', +		rt_departure    => '2018-10-16T17:36',  		arr_station     => 'EG', -		sched_arrival   => '16.10.2018 18:34', -		rt_arrival      => '16.10.2018 18:34', +		sched_arrival   => '2018-10-16T18:34', +		rt_arrival      => '2018-10-16T18:34',  		comment         => 'Passierschein A38',  	}  ); @@ -123,11 +123,11 @@ $t->post_ok(  		action          => 'save',  		train           => 'RE 42 11238',  		dep_station     => 'EMSTP', -		sched_departure => '16.11.2018 17:36', -		rt_departure    => '16.11.2018 17:45', +		sched_departure => '2018-11-16T17:36', +		rt_departure    => '2018-11-16T17:45',  		arr_station     => 'EG', -		sched_arrival   => '16.11.2018 18:34', -		rt_arrival      => '16.11.2018 19:00', +		sched_arrival   => '2018-11-16T18:34', +		rt_arrival      => '2018-11-16T19:00',  	}  );  $t->status_is(302)->header_is( location => '/journey/2' ); @@ -153,10 +153,10 @@ $t->post_ok(  		action          => 'save',  		train           => 'ICE 1',  		dep_station     => 'EE', -		sched_departure => '17.11.2018 15:42', +		sched_departure => '2018-11-17T15:42',  		rt_departure    => '',  		arr_station     => 'BL', -		sched_arrival   => '17.11.2018 19:42', +		sched_arrival   => '2018-11-17T19:42',  		rt_arrival      => '',  	}  ); diff --git a/t/12-journey-edit.t b/t/12-journey-edit.t index f8b8ee5..e0d5546 100644 --- a/t/12-journey-edit.t +++ b/t/12-journey-edit.t @@ -140,8 +140,8 @@ $t->post_ok(  $t->status_is(200)->content_like(qr{M.nster\(Westf\)Hbf})    ->content_like(qr{Gelsenkirchen Hbf})->content_like(qr{RE 11238}) -  ->content_like(qr{Linie 42})->content_like(qr{16.10.2018 ..:36}) -  ->content_like(qr{16.10.2018 ..:34})->content_like(qr{Huhu}); +  ->content_like(qr{Linie 42})->content_like(qr{2018-10-16T..:36}) +  ->content_like(qr{2018-10-16T..:34})->content_like(qr{Huhu});  $csrf_token = $t->tx->res->dom->at('input[name=csrf_token]')->attr('value'); @@ -152,10 +152,10 @@ $t->post_ok(  		csrf_token      => $csrf_token,  		from_name       => 'Münster(Westf)Hbf',  		to_name         => 'Gelsenkirchen Hbf', -		sched_departure => '16.10.2018 17:36', -		rt_departure    => '16.10.2018 17:36', -		sched_arrival   => '16.10.2018 18:34', -		rt_arrival      => '16.10.2018 18:34', +		sched_departure => '2018-10-16T17:36', +		rt_departure    => '2018-10-16T17:36', +		sched_arrival   => '2018-10-16T18:34', +		rt_arrival      => '2018-10-16T18:34',  	}  ); @@ -177,8 +177,8 @@ $t->post_ok(  $t->status_is(200)->content_like(qr{M.nster\(Westf\)Hbf})    ->content_like(qr{Gelsenkirchen Hbf})->content_like(qr{RE 11238}) -  ->content_like(qr{Linie 42})->content_like(qr{16.10.2018 ..:36}) -  ->content_like(qr{16.10.2018 ..:34})->content_like(qr{Huhu}); +  ->content_like(qr{Linie 42})->content_like(qr{2018-10-16T..:36}) +  ->content_like(qr{2018-10-16T..:34})->content_like(qr{Huhu});  $csrf_token = $t->tx->res->dom->at('input[name=csrf_token]')->attr('value'); @@ -189,10 +189,10 @@ $t->post_ok(  		csrf_token      => $csrf_token,  		from_name       => 'Münster(Westf)Hbf',  		to_name         => 'Gelsenkirchen Hbf', -		sched_departure => '16.10.2018 17:36', -		rt_departure    => '16.10.2018 17:42', -		sched_arrival   => '16.10.2018 18:34', -		rt_arrival      => '16.10.2018 18:33', +		sched_departure => '2018-10-16T17:36', +		rt_departure    => '2018-10-16T17:42', +		sched_arrival   => '2018-10-16T18:34', +		rt_arrival      => '2018-10-16T18:33',  	}  ); | 
