rails/activejob/CHANGELOG.md
Vlado Cingel 10d0f48ad8 Ability to test activejobs with relative delay
`assert_enqueued_with` and `assert_performed_with` were not able to
properly test jobs with relative delay. `:at` option was asserted for
equality and test will always fail cause small fraction of time will
pass between job call and assertion.

This commit fixes that by droping microseconds from `:at` argument
assertions.
2019-07-26 00:41:15 +02:00

235 B

  • assert_enqueued_with and assert_performed_with can now test jobs with relative delay.

    Vlado Cingel

Please check 6-0-stable for previous changes.