X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fweb%2Ffallback_test.exs;h=cc78b3ae157ac7d3045a138dd9f137d72ceac6de;hb=6fb67b74dac789654cbaaef4b6969017f5d985ed;hp=514923a20009f9023ff5c74ce540a97209a11bd3;hpb=a13d449b241b6e5fa14fb741694e63cd21569b2c;p=akkoma diff --git a/test/web/fallback_test.exs b/test/web/fallback_test.exs index 514923a20..cc78b3ae1 100644 --- a/test/web/fallback_test.exs +++ b/test/web/fallback_test.exs @@ -24,6 +24,12 @@ 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 /*path", %{conn: conn} do assert conn |> get("/foo")