about summary refs log tree commit diff
path: root/spec/fabricators
diff options
context:
space:
mode:
authorChad Pytel <chad@thoughtbot.com>2017-04-07 12:50:43 -0400
committerChad Pytel <chad@thoughtbot.com>2017-04-07 12:50:43 -0400
commit38bec798117446603b304c0d14ca39bae5ee8be8 (patch)
tree527a7fbe6535f59a02650220fa99783c9578fc04 /spec/fabricators
parent4e41cd9ab8f51120d558b70528b163c98993be53 (diff)
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.
Diffstat (limited to 'spec/fabricators')
-rw-r--r--spec/fabricators/media_attachment_fabricator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/fabricators/media_attachment_fabricator.rb b/spec/fabricators/media_attachment_fabricator.rb
index 59db2440d..dc91d708f 100644
--- a/spec/fabricators/media_attachment_fabricator.rb
+++ b/spec/fabricators/media_attachment_fabricator.rb
@@ -1,3 +1,3 @@
 Fabricator(:media_attachment) do
-
+  account
 end