Files
danbooru/test/factories/post.rb
2017-02-06 18:48:37 -06:00

19 lines
366 B
Ruby

FactoryGirl.define do
factory(:post) do
sequence :md5 do |n|
n.to_s
end
uploader :factory => :user
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