[RUN ALL RSPEC] Make stub_env simpler and complete
Previously stub_env
stubbed most of the common methods for ENV, but it
missed a crucial one: to_h
.
The new implementation fixes that problem and significantly simplifies
the implementation by using stub_const
.
This came out of !45855 (merged).
Edited by Stan Hu