branch: scratch/el-mock commit d43353c2aaa2423b39945233cad7a817635a391d Author: Arthur Nogueira Neves <git...@arthurnn.com> Commit: Arthur Neves <arthu...@gmail.com>
Add How to use it section to readme Was trying to hook this with https://github.com/arthurnn/minitest-emacs , however I was missing the `eval-when-compile` part. Adding this, so the next dev wont lose that time too. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index ac7745b1d4..4af180ceff 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,15 @@ _NOTE: El mock has moved from El mock is a mocking library for Emacs. +## How to use it +Add this to your test-helper, [for instance](https://github.com/rejeep/prodigy.el/blob/700eb15293260fdfa2fc0cff38df600693b7e4e5/test/test-helper.el#L107-L109) +``` +(require 'el-mock) +(eval-when-compile + (require 'cl)) ;; for el-mock +``` + + ## Contribution Be sure to!