Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defdelegate problem #104

Open
tim2CF opened this issue Jul 17, 2019 · 1 comment
Open

defdelegate problem #104

tim2CF opened this issue Jul 17, 2019 · 1 comment

Comments

@tim2CF
Copy link

tim2CF commented Jul 17, 2019

Mocks are not working for functions defined with defdelegate expressions:

    pid = self()
    with_mock Process, [:passthrough], alive?: &(&1 != pid) do
      Process.alive?(pid)
      # ==> true (expected false)
    end
@larszen
Copy link

larszen commented Nov 20, 2020

Is there a solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants