mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
10d0f48ad8
`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.
235 B
235 B
-
assert_enqueued_with
andassert_performed_with
can now test jobs with relative delay.Vlado Cingel
Please check 6-0-stable for previous changes.