X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fweb%2Ffallback_test.exs;h=c13db9526467ad9c13843ef969b7d730d404095a;hb=4646d3c9d655b82742fe5e4c397a534ec491d2e1;hp=514923a20009f9023ff5c74ce540a97209a11bd3;hpb=a13d449b241b6e5fa14fb741694e63cd21569b2c;p=akkoma diff --git a/test/web/fallback_test.exs b/test/web/fallback_test.exs index 514923a20..c13db9526 100644 --- a/test/web/fallback_test.exs +++ b/test/web/fallback_test.exs @@ -24,6 +24,16 @@ defmodule Pleroma.Web.FallbackTest do |> html_response(200) =~ "" end + test "GET /api*path", %{conn: conn} do + assert conn + |> get("/api/foo") + |> json_response(404) == %{"error" => "Not implemented"} + end + + test "GET /pleroma/admin -> /pleroma/admin/", %{conn: conn} do + assert redirected_to(get(conn, "/pleroma/admin")) =~ "/pleroma/admin/" + end + test "GET /*path", %{conn: conn} do assert conn |> get("/foo")