diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-08-23 10:34:02 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-08-23 10:34:02 +0200 |
commit | f6d56d3134f6045726cb1d4ed8700382575bb686 (patch) | |
tree | 82bdf8b59acfefd6fb001d6be807915834ee64a9 /t/02-registration.t | |
parent | d08c1ead330f80ef1ae5f477f6d47a45f5793bb0 (diff) |
Add proper journey comment support
Diffstat (limited to 't/02-registration.t')
-rw-r--r-- | t/02-registration.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/02-registration.t b/t/02-registration.t index 2be865f..ac7200a 100644 --- a/t/02-registration.t +++ b/t/02-registration.t @@ -215,6 +215,7 @@ $t->post_ok( arr_station => 'EG', sched_arrival => '16.10.2018 18:34', rt_arrival => '16.10.2018 18:34', + comment => 'Passierschein A38', } ); $t->status_is(302)->header_is( location => '/journey/1' ); @@ -223,7 +224,8 @@ $t->get_ok('/journey/1')->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{..:36}) ->content_like(qr{..:34})->content_like(qr{ca[.] 62 km}) - ->content_like(qr{Luftlinie: 62 km})->content_like(qr{64 km/h}); + ->content_like(qr{Luftlinie: 62 km})->content_like(qr{64 km/h}) + ->content_like(qr{Passierschein A38}); $t->get_ok('/history/2018/10')->status_is(200)->content_like(qr{62 km}) ->content_like(qr{00:58 Stunden})->content_like(qr{00:00 Stunden}) |