Can you expect only one type of job to be enqueued in Rspec?
问题 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