mirror of
https://github.com/funamitech/mastodon
synced 2024-12-01 00:08:39 +09:00
85973f4f37
* Check if image value is nil? before creating an image Check if uploaded images aren't nil before creating SiteUpload models for them. * Validate presence of file in SiteUpload * Fix file presence validation * Fabricate SiteUpload#file * Add link to Creative Commons license
4 lines
128 B
Ruby
4 lines
128 B
Ruby
Fabricator(:site_upload) do
|
|
file { File.open(File.join(Rails.root, 'spec', 'fabricators', 'assets', 'utah_teapot.png')) }
|
|
end
|