gitlab-org--gitlab-foss/spec/support/helpers/rails_helpers.rb
2019-08-28 11:53:29 +10:00

7 lines
182 B
Ruby

# frozen_string_literal: true
module RailsHelpers
def stub_rails_env(env_name)
allow(Rails).to receive(:env).and_return(ActiveSupport::StringInquirer.new(env_name))
end
end