These tests currently fail because the fixtures use a fixed time instant, while the time is calculated relative to the current date. As time passes, the actual strings change (e.g., "4 months ago" will become "5 months ago" and so on).
To make these tests tolerant to time changes, I have used a matcher to check if only the start of the string matches, ignoring the time part.
Context
These tests currently fail because the fixtures use a fixed time instant, while the time is calculated relative to the current date. As time passes, the actual strings change (e.g., "4 months ago" will become "5 months ago" and so on).
To make these tests tolerant to time changes, I have used a matcher to check if only the start of the string matches, ignoring the time part.