Can you expect only one type of job to be enqueued in Rspec?

喜欢而已 提交于 2020-01-06 06:48:10

问题


Using rspec-rails (3.8.0), can you expect only one type of job to be enqueued (in case other types of jobs are also being enqueued in related activity)?

The main question that sparked this question is here: How do you create parent objects for a factory using before(:create) without sparking the parents' after_create callback?

Feel free to discuss both!

Thanks, Kevin

来源:https://stackoverflow.com/questions/54370695/can-you-expect-only-one-type-of-job-to-be-enqueued-in-rspec

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!