Avoid Microsecond Pitfalls When Comparing Times in Tests
If microsecond precision is not required when testing Time, DateTime, or ActiveSupport::TimeWithZone, use iso8601 to assert equality between different times. There are two ways to avoid test failures caused by execution delays:
Use time.iso8601
U...
codeandgit.hashnode.dev3 min read