diff --git a/spec/factories.rb b/spec/factories.rb index b2ed52b7a7..6da7824d47 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -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