Sha256: 78255186b3a0bdf48ae7372b510741cc64056f42d46386cb04174e9a08163c4c
Contents?: true
Size: 414 Bytes
Versions: 19
Compression:
Stored size: 414 Bytes
Contents
FactoryBot.define do factory :image, class: Spree::Image do if Rails.application.config.use_paperclip attachment { File.new(Spree::Core::Engine.root + 'spec/fixtures' + 'thinking-cat.jpg') } else before(:create) do |image| image.attachment.attach(io: File.new(Spree::Core::Engine.root + 'spec/fixtures' + 'thinking-cat.jpg'), filename: 'thinking-cat.jpg') end end end end
Version data entries
19 entries across 19 versions & 1 rubygems