2020-06-03 19:40:48 +02:00
|
|
|
# Pleroma: A lightweight social networking server
|
|
|
|
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
defmodule Pleroma.Web.Preload.Providers.StatusNetTest do
|
|
|
|
use Pleroma.DataCase
|
|
|
|
alias Pleroma.Web.Preload.Providers.StatusNet
|
|
|
|
|
|
|
|
setup do: {:ok, StatusNet.generate_terms(nil)}
|
|
|
|
|
2020-06-29 11:41:00 +02:00
|
|
|
test "it renders the info", %{"/api/statusnet/config.json" => info} do
|
2020-06-26 14:47:38 +02:00
|
|
|
assert {:ok, res} = Jason.decode(info)
|
|
|
|
assert res["site"]
|
2020-06-03 19:40:48 +02:00
|
|
|
end
|
|
|
|
end
|