metu.life/spec/fabricators/custom_emoji_fabricator.rb

5 lines
156 B

Fabricator(:custom_emoji) do
shortcode 'coolcat'
domain nil
image { File.open(Rails.root.join('spec', 'fixtures', 'files', 'emojo.png')) }
end