Hi #ruby community I'm looking for other recommendation here https://codeberg.org/codeDude/romodoro-socket/src/branch/main/lib/romodoro/socket/timer/countdown.rb
I''m not sure how to test this with #Rspec
basically the intention is test if the duration is for example 2 seconds the countdown spend 2 seconds.
Could you gimme ideas please?



![A comment in the peer-review tool, where I post my suggestion:
> if this a hash, please use a collection-based matcher:
Suggested change
```diff
- expect(result.failure[:error]).to eq('Pusher error')
- expect(result.failure[:context]).to eq('notify_notification_started')
+ expect(result.failure).to match(
+ error: 'Pusher error'
+ context: 'notify_notification_started'
+ )
```](https://files.mastodon.social/cache/media_attachments/files/115/385/810/079/820/901/small/3c5e2f6d1b6375f4.png)
