summaryrefslogtreecommitdiff
path: root/t/22-marudor.t
diff options
context:
space:
mode:
Diffstat (limited to 't/22-marudor.t')
-rw-r--r--t/22-marudor.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/22-marudor.t b/t/22-marudor.t
index 406a002..e11bb88 100644
--- a/t/22-marudor.t
+++ b/t/22-marudor.t
@@ -38,8 +38,13 @@ $t->get_ok('/EDUV?mode=marudor_v1&backend=iris')
qr{ ^ (Dortmund|Bochum|Essen|D.sseldorf|Solingen) \s Hbf $}x,
'.scheduled_route[0]')
->json_like('/preformatted/0/via/0',
- qr{ ^ Dortmund-Dorstfeld S.d | Dortmund-Oespel $}x,
+ qr{ ^ Dortmund-Dorstfeld \s S.d | Dortmund-Oespel $}x,
'.scheduled_route[0]')
;
+$t->get_ok('/EDUV?mode=marudor_v1&backend=iris&callback=my_callback')
+ ->status_is(200)
+ ->content_like(qr{ ^ my_callback \( }x, 'json callback works');
+# ) <- just here to fix bracket grouping in vim
+
done_testing();