Add specs for media attachment validations
There are currently not specs for the two media validations that are performed by `PostStatusService`. This adds specs for the validations that ensure that you cannot attach more than four files, and that a status cannot have both image and video attachments.
This commit is contained in:
parent
4e41cd9ab8
commit
38bec79811
2 changed files with 42 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
|||
Fabricator(:media_attachment) do
|
||||
|
||||
account
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue