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

fix #88 #162

Merged
merged 1 commit into from
Jun 28, 2016
Merged

fix #88 #162

merged 1 commit into from
Jun 28, 2016

Conversation

yutopp
Copy link
Contributor

@yutopp yutopp commented Jun 27, 2016

fix #88.
Added delete/4 which has a flag to delete a function even if the module has a passthrough option. Now, default delete/3 doesn't delete a function(replace to a passthrough entry implicitly) if the module has a passthrough option.

Thanks.

% dbg:tracer(),
% dbg:p(all, call),
% dbg:tpl(meck, []),
ok = meck:new(mymod_pass, [passthrough, non_strict]),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to use the meck_test_module here? Then we wouldn't have to add a new module to tests.

@eproxus
Copy link
Owner

eproxus commented Jun 27, 2016

Thanks for a very clear patch!

Can you do two things? Squash the commits into one and capitalize the commit message, and make sure the code has a max line width of 80?

@yutopp yutopp force-pushed the support_passthrough_when_deleting branch from 1d1db55 to 77f63da Compare June 27, 2016 11:50
@yutopp
Copy link
Contributor Author

yutopp commented Jun 27, 2016

Thank you very mush for your quick response.

  • use meck_test_module instead of mymod_pass
  • add detailed documents
  • squash commits and capitalize the commit message
  • check the max line width

Thanks!

@eproxus
Copy link
Owner

eproxus commented Jun 28, 2016

Brilliant! Thanks so much!

@eproxus eproxus merged commit 3cf10b5 into eproxus:master Jun 28, 2016
@yutopp yutopp deleted the support_passthrough_when_deleting branch June 28, 2016 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting an expectation in passthrough mode does not restore original function
2 participants