Adding a distributor to order cycle to fix broken feature spec

This commit is contained in:
Rob Harrington
2015-05-07 12:48:31 +10:00
parent 0d5ce5ff57
commit f3f0766279

View File

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