+ def test_destroy_called
+ trace = Minitest::Mock.new
+
+ # Tiny little bit of mocking to make activejob happy
+ trace.expect :is_a?, false, [TraceDestroyerJob]
+
+ # Check that trace.destroy is called
+ trace.expect :destroy, true
+
+ TraceDestroyerJob.perform_now(trace)
+
+ assert_mock trace
+ end