mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
Add a sequence to option type position, prevents inconsistent ordering in specs
This commit is contained in:
@@ -190,6 +190,10 @@ FactoryGirl.modify do
|
||||
distributors { [Enterprise.is_distributor.first || FactoryGirl.create(:distributor_enterprise)] }
|
||||
end
|
||||
|
||||
factory :option_type do
|
||||
# Prevent inconsistent ordering in specs when all option types have the same (0) position
|
||||
sequence(:position)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user