Skip to content
代码片段 群组 项目
未验证 提交 6aa215aa 编辑于 作者: Yorick Peterse's avatar Yorick Peterse 提交者: Rémy Coutable
浏览文件

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.
上级 224db2f8
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true # frozen_string_literal: true
require 'active_support/inflector'
module InjectEnterpriseEditionModule module InjectEnterpriseEditionModule
def prepend_if_ee(constant) def prepend_if_ee(constant)
prepend(constant.constantize) if Gitlab.ee? prepend(constant.constantize) if Gitlab.ee?
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
Encoding.default_external = 'UTF-8' Encoding.default_external = 'UTF-8'
require_relative '../lib/gitlab'
require_relative '../config/initializers/0_inject_enterprise_edition_module'
module QA module QA
## ##
# GitLab QA runtime classes, mostly singletons. # GitLab QA runtime classes, mostly singletons.
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册