gitlab-org--gitlab-foss/spec/fast_spec_helper.rb
Rémy Coutable c286c66f57
Move Settings to its own file, isolate it from Rails and introduce Gitlab.root
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-23 12:20:30 +02:00

21 lines
522 B
Ruby

require 'bundler/setup'
require 'settingslogic'
ENV['GITLAB_ENV'] = 'test'
ENV['RAILS_ENV'] = 'test'
ENV['IN_MEMORY_APPLICATION_SETTINGS'] = 'true'
unless Kernel.respond_to?(:require_dependency)
module Kernel
alias_method :require_dependency, :require
end
end
# Defines Gitlab and Gitlab.config which are at the center of the app
unless defined?(Gitlab) && Gitlab.respond_to?(:config)
require_relative '../lib/settings'
require_relative '../config/initializers/2_app'
end
require_relative 'support/rspec'