antonmi/espec

Allow asserting that a mock will be called within a timeout

オープン

#282 opened on 2018/10/26

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Elixir (67 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (814 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド