Commit 604088d
authored
fix: use date safely within validation window in organization spec (#5535)
The test used `DateTime.current.next_year - 1.day` which is right at the
boundary of the `issued_at_cannot_be_further_than_1_year` validation.
This causes intermittent failures due to timing precision. Using
`6.months.from_now` keeps the test intent (future date that passes
validation) while staying well within the allowed window.1 parent 4416b13 commit 604088d
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
408 | | - | |
409 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
0 commit comments