tests: add missing controller tests.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
FactoryBot.define do
|
||||
factory(:forum_topic_visit)
|
||||
factory(:forum_topic_visit) do
|
||||
user
|
||||
forum_topic
|
||||
end
|
||||
end
|
||||
|
||||
12
test/factories/pixiv_ugoira_frame_data.rb
Normal file
12
test/factories/pixiv_ugoira_frame_data.rb
Normal 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
|
||||
@@ -1,7 +1,7 @@
|
||||
FactoryBot.define do
|
||||
factory(:post_appeal) do
|
||||
creator
|
||||
post
|
||||
post { build(:post, is_deleted: true) }
|
||||
reason {"xxx"}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user