diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-12-19 18:42:45 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-12-19 18:42:45 +0100 |
commit | 4cfe87198211954724638540a5d7a38ff0229716 (patch) | |
tree | f9f229932fdb5419e06aed0cb6c49720699ae504 | |
parent | 3f75f8f96cde22072b12a479390ae2a2e4b4d009 (diff) |
marudor.t: Add callback test
-rw-r--r-- | t/22-marudor.t | 7 |
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(); |