In our Cucumber steps, we would like to start a long running task in one step and check that the task is running and that it set up the UI for the task correctly, in another step. Checking the UI must be done while the first step is still running. Our Cucumber looks similar to this:
Given I start my long running task
And I navigate to application status page
Then I should see "Status" in the html
We are using the DelayedJob gem to complete our long running tasks and currently run Delayed::Job.work_off in a new thread.
What is the best way to run steps concurrently with Cucumber?
Is there an officially supported way to do this?