debian-mirror-gitlab/spec/support/helpers/rails_helpers.rb

8 lines
182 B
Ruby
Raw Normal View History

2019-12-04 20:38:33 +05:30
# 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