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.
This commit is contained in:
parent
252a0b0faa
commit
27194e0852
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
# 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?
|
||||||
|
|
3
qa/qa.rb
3
qa/qa.rb
|
@ -4,6 +4,9 @@ $: << File.expand_path(File.dirname(__FILE__))
|
||||||
|
|
||||||
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.
|
||||||
|
|
Loading…
Reference in a new issue