2019-10-06 23:07:19 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-10-28 20:08:36 -04:00
|
|
|
# When running in CI environment, we need to load a full `spec_helper`
|
|
|
|
if ENV['CI']
|
|
|
|
require_relative 'spec_helper'
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2018-03-29 05:49:08 -04:00
|
|
|
require 'bundler/setup'
|
|
|
|
|
2018-04-10 10:07:47 -04:00
|
|
|
ENV['GITLAB_ENV'] = 'test'
|
|
|
|
ENV['IN_MEMORY_APPLICATION_SETTINGS'] = 'true'
|
2018-03-29 05:49:08 -04:00
|
|
|
|
2019-06-13 08:18:01 -04:00
|
|
|
require 'active_support/dependencies'
|
2019-07-23 10:51:13 -04:00
|
|
|
require_relative '../config/initializers/0_inject_enterprise_edition_module'
|
2018-04-24 10:43:41 -04:00
|
|
|
require_relative '../config/settings'
|
2018-03-29 05:49:08 -04:00
|
|
|
require_relative 'support/rspec'
|
2018-05-11 07:28:26 -04:00
|
|
|
require 'active_support/all'
|
|
|
|
|
2020-03-18 20:09:27 -04:00
|
|
|
ActiveSupport::Dependencies.autoload_paths << 'lib'
|
|
|
|
ActiveSupport::Dependencies.autoload_paths << 'ee/lib'
|
2020-06-02 05:08:01 -04:00
|
|
|
|
2018-11-16 01:49:48 -05:00
|
|
|
ActiveSupport::XmlMini.backend = 'Nokogiri'
|