update specs

This commit is contained in:
rahsheen
2025-11-22 10:50:04 -05:00
committed by rah.codes
parent 0b6e7593db
commit 7a5b273e71
2 changed files with 8 additions and 0 deletions

View File

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

View File

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