mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
18 lines
391 B
Ruby
18 lines
391 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :option_value, class: Spree::OptionValue do
|
|
name 'Size'
|
|
presentation 'S'
|
|
option_type
|
|
end
|
|
|
|
factory :option_type, class: Spree::OptionType do
|
|
name 'foo-size'
|
|
presentation 'Size'
|
|
|
|
# Prevent inconsistent ordering in specs when all option types have the same (0) position
|
|
sequence(:position)
|
|
end
|
|
end
|