diff options
author | dtluna <dtluna@openmailbox.org> | 2017-04-10 16:00:57 +0300 |
---|---|---|
committer | dtluna <dtluna@openmailbox.org> | 2017-04-10 16:00:57 +0300 |
commit | 59a406d94cbb1df2f3c7b6b7844f1141cc661f7c (patch) | |
tree | 302ca5032accde7e5d40827c40b0168e8f049926 | |
parent | 9383c0aada01ac1b4898aab02798ea3f9a9ea5a5 (diff) | |
download | pleroma-59a406d94cbb1df2f3c7b6b7844f1141cc661f7c.tar.gz |
Add test for help/test resource
-rw-r--r-- | lib/pleroma/web/router.ex | 1 | ||||
-rw-r--r-- | test/web/twitter_api/twitter_api_controller_test.exs | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index e52a95657..e37bd1f72 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -21,6 +21,7 @@ defmodule Pleroma.Web.Router do scope "/api", Pleroma.Web do pipe_through :api + get "/help/test", TwitterAPI.Controller, :help_test get "/statuses/public_timeline", TwitterAPI.Controller, :public_timeline get "/statuses/public_and_external_timeline", TwitterAPI.Controller, :public_timeline diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs index 5aad12593..bead7a5a1 100644 --- a/test/web/twitter_api/twitter_api_controller_test.exs +++ b/test/web/twitter_api/twitter_api_controller_test.exs @@ -154,6 +154,13 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do end end + describe "GET /help/test.json" do + test "returns \"ok\"", %{conn: conn} do + conn = get conn, "/api/help/test.json" + assert json_response(conn, 200) == "ok" + end + end + defp valid_user(_context) do { :ok, user } = UserBuilder.insert(%{nickname: "lambda", ap_id: "lambda"}) [user: user] |