ruby - How do I test DelayedJob with Cucumber? -
we use delayedjob run of our long running processes , test cucumber/webrat.
currently, calling delayed::job.work_off in ruby thread work done in background, looking more robust solution
what best approach this?
thanks.
the main problem see delayed:job.work_off
approach making explicit in cucumber scenarios belongs internals of system. mixing both concerns against spirit of functional testing:
when click link # operation launched in background , jobs dispatched # delayed:job.work_off invoked here should see results...
another problem populate cucumber scenarios repetitive steps dispatching jobs when needed.
the approach using launching delayed_job in background while cucumber scenarios being executed. can check cucumber hooks using in link.
Comments
Post a Comment