antonmi/espec
Allow asserting that a mock will be called within a timeout
Offen
#282 geöffnet am 26.10.2018
enhancementhelp wanted
Repository-Metriken
- Stars
- (814 Sterne)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
It'd be nice to have the option to assert that a mocked function will be called in a defined timeout.
:meck.wait supports it pretty directly, should be a good fit to expect(mod) |> to(receive ...).
Maybe something like expect(mod) |> to(receive ..., within: 500)?