Make order cycles spec consistent

This commit is contained in:
Rohan Mitchell
2014-05-14 15:50:13 +10:00
parent 6c5172c567
commit a2205d3f93

View File

@@ -242,7 +242,7 @@ feature %q{
scenario "updating an order cycle", js: true do
# Given an order cycle with all the settings
oc = create(:order_cycle)
initial_variants = oc.variants
initial_variants = oc.variants.sort_by &:id
# And a coordinating, supplying and distributing enterprise with some products with variants
coordinator = create(:distributor_enterprise, name: 'My coordinator')