]> cat aescling's git repositories - mastodon.git/commit
Add specs for media attachment validations
authorChad Pytel <chad@thoughtbot.com>
Fri, 7 Apr 2017 16:50:43 +0000 (12:50 -0400)
committerChad Pytel <chad@thoughtbot.com>
Fri, 7 Apr 2017 16:50:43 +0000 (12:50 -0400)
commit38bec798117446603b304c0d14ca39bae5ee8be8
tree527a7fbe6535f59a02650220fa99783c9578fc04
parent4e41cd9ab8f51120d558b70528b163c98993be53
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.
spec/fabricators/media_attachment_fabricator.rb
spec/services/post_status_service_spec.rb