From 10d0f48ad8c42b13738fade4c79b7275cfb7380d Mon Sep 17 00:00:00 2001 From: Vlado Cingel Date: Fri, 26 Jul 2019 00:41:15 +0200 Subject: 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. --- activejob/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activejob/CHANGELOG.md') diff --git a/activejob/CHANGELOG.md b/activejob/CHANGELOG.md index 2f0d72ccb9..542a4eb2db 100644 --- a/activejob/CHANGELOG.md +++ b/activejob/CHANGELOG.md @@ -1,3 +1,6 @@ +* `assert_enqueued_with` and `assert_performed_with` can now test jobs with relative delay. + + *Vlado Cingel* Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/activejob/CHANGELOG.md) for previous changes. -- cgit v1.2.3