Follow-up from "Rename dev, org and com env detection helper"
The following discussion from gitlab-ee!15543 should be addressed:
-
@ashmckenzie started a discussion: We have a few occurrences of stubbing
Rails.env
now, so I feel we should create aRailsHelpers
module atsupport/helpers/rails_helpers.rb
with:module RailsHelpers def stub_rails_env(env_name) allow(Rails).to receive(:env).and_return(ActiveSupport::StringInquirer.new(env_name)) end end