Closed jack-u6 closed 4 years ago
Variables are cached per test. They are auto cleaned up after each test.
this is by design. There is no need to cache them forever
Ah yes that makes sense, for some reason, I thought they were cached for the entirety of their scope. Just tried the same example in Rspec, it is the same behaviour. Thanks!
Cool, so close as there is no action items from my side
It seems the variables are not cached when access in multiple places. From what I understand, they are supposed to be evaluated once on first access and cached if not overridden. Example:
Output: