Use a slightly cleaner approach to stub ENV
What does this MR do?
This uses a slightly cleaner approach that the current one.
I originally wanted to use stub_const
instead of method stub, but that turned out to not be a so good idea in the case of ENV
.
Edited by username-removed-128633