Skip to content

Commit

Permalink
perform job
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyzak committed Feb 28, 2024
1 parent a3f58f7 commit 5f537bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/features/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
context "when all jobs finish successfuly" do
it "marks workflow as completed" do
flow = TestWorkflow.create
perform_enqueued_jobs do
flow.start!
end

ActiveJob::Base.queue_adapter.perform_enqueued_jobs = true
flow.start!
ActiveJob::Base.queue_adapter.perform_enqueued_jobs = false

flow = flow.reload
expect(flow).to be_finished
Expand Down

0 comments on commit 5f537bb

Please sign in to comment.