Skip to content

Stub Rails.application.env_config to prevent spec failures

Stan Hu requested to merge sh-fix-issue-8488 into master

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.

Closes #8488 (closed)

Edited by Stan Hu

Merge request reports