Add a sequence to option type position, prevents inconsistent ordering in specs

This commit is contained in:
Rohan Mitchell
2014-05-21 16:54:26 +10:00
parent a049266732
commit d8fa30ea6f

View File

@@ -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