antonmi/espec

Allow asserting that a mock will be called within a timeout

Aberta

#282 aberto em 26 de out. de 2018

 (1 comentário) (0 reação) (0 responsável)Elixir (67 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (814 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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

Guia do colaborador