Closed Trevoke closed 2 years ago
This looks like a duplicate of #127. Do you agree @Trevoke ?
I don't think so, because I have lexical binding enabled?
It's also possible I've actually misunderstood the flow of conversation in #127 and the core issue is still the dynamic scope, if so, then yes, I would agree it's a duplicate. I am not that familiar with emacs internals yet.
This is not about lexical binding, lexical binding is required for buttercup to work. I'm going to say that this is a Duplicate of #127 for now.
Duplicate of #127
Closing as a duplicate
I have discovered in my test suite ( https://github.com/trevoke/org-gtd.el/ ) that I couldn't use
:var org-gtd-directory
to set the variable -- in my tests, it wouldn't be the correct value, it would be the default value.org-gtd-directory
is adefcustom
, so it has a default value that I was trying to change within a describe block.So right now instead I accept that I am modifying the global scope and setting that variable with
setq
in a function called bybefore-all
.This is... Fine... But it lowers my overall trust in buttercup as a test runner :/
Here is sample code:
This prints out
~/gtd
instead of~/src/projects/org-gtd.el/test/runtime-file-path
.