From 916183a7fd63f772a8493c9ac782b465503f9d13 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Tue, 23 Jul 2019 16:51:13 +0200 Subject: Add methods for injecting EE modules 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. --- spec/fast_spec_helper.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/fast_spec_helper.rb') diff --git a/spec/fast_spec_helper.rb b/spec/fast_spec_helper.rb index 91ef7653822..f5a487b4d57 100644 --- a/spec/fast_spec_helper.rb +++ b/spec/fast_spec_helper.rb @@ -4,6 +4,7 @@ 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' -- cgit v1.2.1