Sha256: 18f756e6b6df7b4449c90d73fbbe47ff9802d4267ce7076836581cbc07e69260
Contents?: true
Size: 312 Bytes
Versions: 22
Compression:
Stored size: 312 Bytes
Contents
FactoryBot.define do factory :image, class: Spree::Image do before(:create) do |image| if image.class.method_defined?(:attachment) 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
22 entries across 22 versions & 1 rubygems