mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Adding a distributor to order cycle to fix broken feature spec
This commit is contained in:
@@ -211,8 +211,9 @@ feature %q{
|
||||
end
|
||||
|
||||
it "handles order cycles with nil opening or closing times" do
|
||||
oc = create(:simple_order_cycle, name: "My Order Cycle", orders_open_at: Time.now, orders_close_at: nil)
|
||||
o = create(:order, order_cycle: oc)
|
||||
distributor = create(:distributor_enterprise)
|
||||
oc = create(:simple_order_cycle, name: "My Order Cycle", distributors: [distributor], orders_open_at: Time.now, orders_close_at: nil)
|
||||
o = create(:order, order_cycle: oc, distributor: distributor)
|
||||
|
||||
login_to_admin_section
|
||||
visit spree.orders_and_fulfillment_admin_reports_path
|
||||
|
||||
Reference in New Issue
Block a user