hometown/spec/fabricators/site_upload_fabricator.rb

4 lines
128 B
Ruby

Fabricator(:site_upload) do
file { File.open(File.join(Rails.root, 'spec', 'fabricators', 'assets', 'utah_teapot.png')) }
end