Files
danbooru/test/factories/post.rb
Toks afa4e83d9b Auto-add automatic tags whenever post is updated
Instead of being limited to when it's first uploaded.
2013-12-15 19:39:10 -05:00

16 lines
312 B
Ruby

FactoryGirl.define do
factory(:post) do
md5 {|x| Time.now.to_f.to_s}
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"
end
end