Files
danbooru/test/factories/post.rb
evazion be4646aa6f tests: fix username conflicts in parallel tests.
Parallel tests sometimes failed because the username generator sometimes
generated duplicate usernames.
2020-06-11 02:43:19 -05:00

17 lines
352 B
Ruby

FactoryBot.define do
factory(:post) do
md5 { SecureRandom.hex(32) }
uploader
uploader_ip_addr {"127.0.0.1"}
tag_string {"tag1 tag2"}
tag_count {2}
tag_count_general {2}
file_ext {"jpg"}
image_width {1500}
image_height {1000}
file_size {2000}
rating {"q"}
source { FFaker::Internet.http_url }
end
end