debian-mirror-gitlab/spec/support/helpers/rails_helpers.rb
2019-12-04 20:38:33 +05:30

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