Resolve follow activity from accept/reject without ID (#328)
[akkoma] / test / pleroma / hashtag_test.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.HashtagTest do
6 use Pleroma.DataCase
7
8 alias Pleroma.Hashtag
9
10 describe "changeset validations" do
11 test "ensure non-blank :name" do
12 changeset = Hashtag.changeset(%Hashtag{}, %{name: ""})
13
14 assert {:name, {"can't be blank", [validation: :required]}} in changeset.errors
15 end
16 end
17 end