mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-11 18:26:50 +00:00
update specs
This commit is contained in:
@@ -97,6 +97,13 @@ RSpec.describe OpenOrderCycleJob do
|
||||
|
||||
expect(cloned_order_cycle.opened_at).to be_within(1).of(now)
|
||||
end
|
||||
|
||||
it "enqueues webhook job" do
|
||||
expect(OrderCycles::WebhookService)
|
||||
.to receive(:create_webhook_job).with(cloned_order_cycle, 'order_cycle.opened', now).once
|
||||
|
||||
subject
|
||||
end
|
||||
end
|
||||
|
||||
describe "concurrency", concurrency: true do
|
||||
|
||||
@@ -17,6 +17,7 @@ RSpec.describe OrderCycles::CloneService do
|
||||
occ = OrderCycles::CloneService.new(oc).create
|
||||
expect(occ.name).to eq("COPY OF #{oc.name}")
|
||||
expect(occ.orders_open_at).to be_nil
|
||||
expect(occ.opened_at).to be_nil
|
||||
expect(occ.orders_close_at).to be_nil
|
||||
expect(occ.coordinator).not_to be_nil
|
||||
expect(occ.preferred_product_selection_from_coordinator_inventory_only).to be true
|
||||
|
||||
Reference in New Issue
Block a user