<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
you are mixing eunit generators with simple test cases. Did you mean this?<br>
<br>
get_config_test() -><br>
<div class="im">  meck:new(mocked),<br>
  meck:expect(mocked, myfun, fun(Filename) -> ok end),<br>
</div>  ?assertEqual(ok, get_config()),<br>
  ?assert(meck:called(mocked, myfun, ["test.config"])),<br>
  meck:unload(mocked).<br>
<br>
Normally, you should split meck:new and meck:unload to separate<br>
setup/cleanup functions. Because if a test fails and the module is not<br>
cleaned, it might unexpectedly do ill for your other test cases.<br></blockquote><div><br></div><div>can't i use this in generators?  </div><div><br></div><div>the reason why i didn't include unload is because of this: <a href="https://github.com/eproxus/meck/issues/72">https://github.com/eproxus/meck/issues/72</a></div>
<div><br></div><div>r.</div><div> </div></div><br>