916183a7fd
This adds the methods prepend_if_ee, extend_if_ee, and include_if_ee that can be used to inject EE specific modules in EE. These methods are exposed as an initializer that is loaded as soon as possible. For tests that use fast_spec_helper.rb we must load this initializer manually, as the Rails environment is not loaded. This is not the most pretty setup, but unfortunately there is no alternative that we can use.
14 lines
467 B
Ruby
14 lines
467 B
Ruby
require 'bundler/setup'
|
|
|
|
ENV['GITLAB_ENV'] = 'test'
|
|
ENV['IN_MEMORY_APPLICATION_SETTINGS'] = 'true'
|
|
|
|
require 'active_support/dependencies'
|
|
require_relative '../config/initializers/0_inject_enterprise_edition_module'
|
|
require_relative '../config/settings'
|
|
require_relative 'support/rspec'
|
|
require 'active_support/all'
|
|
|
|
ActiveSupport::Dependencies.autoload_paths << 'lib'
|
|
ActiveSupport::Dependencies.autoload_paths << 'ee/lib'
|
|
ActiveSupport::XmlMini.backend = 'Nokogiri'
|