Skip to content
Snippets Groups Projects
Unverified Commit 6aa215aa authored by Yorick Peterse's avatar Yorick Peterse Committed by Rémy Coutable
Browse files

Support X_if_ee methods for QA tests

For the QA tests to use the new injection methods, we must require the
initializer and ensure that the "constantize" method is available.
parent 224db2f8
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
 
require 'active_support/inflector'
module InjectEnterpriseEditionModule
def prepend_if_ee(constant)
prepend(constant.constantize) if Gitlab.ee?
Loading
Loading
Loading
Loading
@@ -4,6 +4,9 @@ $: << File.expand_path(File.dirname(__FILE__))
 
Encoding.default_external = 'UTF-8'
 
require_relative '../lib/gitlab'
require_relative '../config/initializers/0_inject_enterprise_edition_module'
module QA
##
# GitLab QA runtime classes, mostly singletons.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment