You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we have module Foo, wanna to test function bar/1
def bar(data) do
buzz(data, @someparam)
end
Where buzz/2 is also public function. We try to mock buzz/2 function with :passthrough option, but it not get mocked - original function is called. If we rewrite bar/1 function like this
def bar(data) do
Foo.buzz(data, @someparam)
end
then buzz/2 function can be mocked. I think this behaviour should be fixed of documented.
The text was updated successfully, but these errors were encountered:
If we have module
Foo
, wanna to test functionbar/1
Where
buzz/2
is also public function. We try to mockbuzz/2
function with:passthrough
option, but it not get mocked - original function is called. If we rewritebar/1
function like thisthen
buzz/2
function can be mocked. I think this behaviour should be fixed of documented.The text was updated successfully, but these errors were encountered: