tests: add missing controller tests.

This commit is contained in:
evazion
2020-03-30 12:36:06 -05:00
parent 83c2abf1ae
commit 4e2fd82ef6
19 changed files with 227 additions and 14 deletions

View File

@@ -1,3 +1,6 @@
FactoryBot.define do
factory(:forum_topic_visit)
factory(:forum_topic_visit) do
user
forum_topic
end
end

View File

@@ -0,0 +1,12 @@
FactoryBot.define do
factory(:pixiv_ugoira_frame_data) do
post
content_type { "image/jpeg" }
data do
[
{ "file" => "000000.jpg", "delay" => 200 },
{ "file" => "000001.jpg", "delay" => 200 },
]
end
end
end

View File

@@ -1,7 +1,7 @@
FactoryBot.define do
factory(:post_appeal) do
creator
post
post { build(:post, is_deleted: true) }
reason {"xxx"}
end
end