-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make random_example_spec.rb tests time-safe
I noticed that the test would occasionally fail because the time would be different between the first run and second run of `GovukSchemas::RandomExample.new(schema: schema).payload` The `public_updated_at` might be 16:06:03 for one and 16:06:04 for the other. This is just a natural consequence of the time it takes to execute the code, and is not an indicator of the randomness not being deterministic, which is what the test is testing.
- Loading branch information
1 parent
e491224
commit 241b921
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters