How to test that ActiveJob is enqueued?
|Added at||2016-12-07 04:12|
I have a create action that calls an ActiveJob if the record is successfully saved.
I want to test that the Job is correctly called in a controller spec.
But I get
The first test is passing, so I know the Object is saved successfully. What is the correct way to test that an ActiveJob is enqueued?