Stub Rails.application.env_config to prevent spec failures
When we modify env_config, that is on the global Rails.application, and we need to stub it and allow it to be modified in-place, without polluting later tests.
When we modify env, then the context is a request, or something else that only lives for a single spec.
Edited by Stan Hu