logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma

feed_test.exs (589B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Web.Metadata.Providers.FeedTest do
  5. use Pleroma.DataCase
  6. import Pleroma.Factory
  7. alias Pleroma.Web.Metadata.Providers.Feed
  8. test "it renders a link to user's atom feed" do
  9. user = insert(:user, nickname: "lain")
  10. assert Feed.build_tags(%{user: user}) == [
  11. {:link,
  12. [rel: "alternate", type: "application/atom+xml", href: "/users/lain/feed.atom"], []}
  13. ]
  14. end
  15. end