mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Improve readability in admin/orders_spec
This commit is contained in:
@@ -102,10 +102,13 @@ feature %q{
|
||||
d = create(:distributor_enterprise)
|
||||
oc = create(:simple_order_cycle, distributors: [d])
|
||||
|
||||
# Moves the order back to the cart state
|
||||
# A nil user keeps the order in the cart state
|
||||
# Move the order back to the cart state
|
||||
@order.state = 'cart'
|
||||
@order.completed_at = nil
|
||||
# A nil user keeps the order in the cart state
|
||||
# Even if the edit page tries to automatically progress the order workflow
|
||||
@order.state = 'cart'; @order.user = nil; @order.completed_at = nil; @order.save
|
||||
@order.user = nil
|
||||
@order.save
|
||||
|
||||
quick_login_as_admin
|
||||
visit '/admin/orders'
|
||||
|
||||
Reference in New Issue
Block a user