Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2700112
hashtag_test.exs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
482 B
Referenced Files
None
Subscribers
None
hashtag_test.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.HashtagTest
do
use
Pleroma.DataCase
alias
Pleroma.Hashtag
describe
"changeset validations"
do
test
"ensure non-blank :name"
do
changeset
=
Hashtag
.
changeset
(%
Hashtag
{},
%{
name
:
""
})
assert
{
:name
,
{
"can't be blank"
,
[
validation
:
:required
]}}
in
changeset
.
errors
end
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 18, 12:20 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
260762
Default Alt Text
hashtag_test.exs (482 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment