antonmi / antonmi/espec

Allow asserting that a mock will be called within a timeout

Open
#282 1 comment 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Elixir
Stars
813
Forks
66
PR merge metrics
No merged PRs in 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)`?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.