gitlab-org--gitlab-foss/spec/support/helpers/rails_helpers.rb

8 lines
182 B
Ruby
Raw Normal View History

2019-08-27 21:53:29 -04:00
# 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