antonmi/espec

Allow asserting that a mock will be called within a timeout

Ouverte

#282 ouverte le 26 oct. 2018

 (1 commentaire) (0 réaction) (0 personne assignée)Elixir (67 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (814 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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)?

Guide contributeur