Sha256: 01128ce85e50dc87c1005f9df9c1943cbe68c055dd9759baad6655cca6f461ce
Contents?: true
Size: 337 Bytes
Versions: 22
Compression:
Stored size: 337 Bytes
Contents
FactoryBot.define do factory :taxon_image, class: Spree::TaxonImage do before(:create) do |taxon_image| if taxon_image.class.method_defined?(:attachment) taxon_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