diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-12-16 09:08:33 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-12-16 09:08:33 +0100 |
commit | 027aa3b389378d7cb5f2913a8c3b3ab7d3744b25 (patch) | |
tree | 3087b1f82034a6099b7e67fe2cd41aba0fcc9191 /t | |
parent | 8f11f5909eb841d8b42d3f61c0c59a780dce585f (diff) |
Rename mode=marudor to mode=json as it is no longer used by marudor.de1.14
mode=marudor requests will be silently handled as mode=json so as not to break
other clients
Diffstat (limited to 't')
-rw-r--r-- | t/22-json.t (renamed from t/22-marudor.t) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/22-marudor.t b/t/22-json.t index 7038ca6..9db67b8 100644 --- a/t/22-marudor.t +++ b/t/22-json.t @@ -14,7 +14,7 @@ my $t = Test::Mojo->new; # be because of IRIS problems or unanticipated schedule changes. # TODO: Support mock XML from hard disk. -$t->get_ok('/EDUV?mode=marudor&version=1') +$t->get_ok('/EDUV?mode=json&version=1') ->status_is(200) ->json_has('/departures', 'has departures') ->json_has('/departures/0', 'has a departure') @@ -38,7 +38,7 @@ $t->get_ok('/EDUV?mode=marudor&version=1') '.via[0]') ; -$t->get_ok('/EDUV?mode=marudor&version=1&callback=my_callback') +$t->get_ok('/EDUV?mode=json&version=1&callback=my_callback') ->status_is(200) ->content_like(qr{ ^ my_callback \( }x, 'json callback works'); # ) <- just here to fix bracket grouping in vim |