update factories + tests

This commit is contained in:
Albert Yi
2019-05-10 17:31:07 -07:00
parent 32b4e0a01e
commit 04edc3f533
26 changed files with 81 additions and 83 deletions

View File

@@ -4,15 +4,15 @@ FactoryBot.define do
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"
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