Files
openfoodnetwork/spec/factories/options_factory.rb
2020-08-26 22:18:40 +01:00

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