mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix static file path in order_cycle_factory
This commit is contained in:
@@ -38,7 +38,7 @@ FactoryBot.define do
|
||||
# Products with images
|
||||
[ex1, ex2].each do |exchange|
|
||||
product = create(:product, supplier: exchange.sender)
|
||||
image = File.open(File.expand_path('../../app/assets/images/logo-white.png', __FILE__))
|
||||
image = File.open(File.expand_path('../../../app/assets/images/logo-white.png', __FILE__))
|
||||
Spree::Image.create({:viewable_id => product.master.id, :viewable_type => 'Spree::Variant', :alt => "position 1", :attachment => image, :position => 1})
|
||||
|
||||
exchange.variants << product.variants.first
|
||||
|
||||
Reference in New Issue
Block a user